e74dd687 by 周伟奇

fix bs data \n

1 parent f80b8302
......@@ -265,7 +265,7 @@ class BSWorkbook(Workbook):
return
date_col = date_col + 1
for date_tuple_src in ws.iter_cols(min_col=date_col, max_col=date_col, min_row=min_row, values_only=True):
date_tuple = [date[:10] if isinstance(date, str) else date for date in date_tuple_src]
date_tuple = [date.replace('\n', '')[:10] if isinstance(date, str) else date for date in date_tuple_src]
dt_array, _ = tslib.array_to_datetime(
np.array(date_tuple, copy=False, dtype=np.object_),
errors="coerce",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!