fix bs data \n
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -265,7 +265,7 @@ class BSWorkbook(Workbook): | ... | @@ -265,7 +265,7 @@ class BSWorkbook(Workbook): |
265 | return | 265 | return |
266 | date_col = date_col + 1 | 266 | date_col = date_col + 1 |
267 | for date_tuple_src in ws.iter_cols(min_col=date_col, max_col=date_col, min_row=min_row, values_only=True): | 267 | for date_tuple_src in ws.iter_cols(min_col=date_col, max_col=date_col, min_row=min_row, values_only=True): |
268 | date_tuple = [date[:10] if isinstance(date, str) else date for date in date_tuple_src] | 268 | date_tuple = [date.replace('\n', '')[:10] if isinstance(date, str) else date for date in date_tuple_src] |
269 | dt_array, _ = tslib.array_to_datetime( | 269 | dt_array, _ = tslib.array_to_datetime( |
270 | np.array(date_tuple, copy=False, dtype=np.object_), | 270 | np.array(date_tuple, copy=False, dtype=np.object_), |
271 | errors="coerce", | 271 | errors="coerce", | ... | ... |
-
Please register or sign in to post a comment