File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -832,7 +832,19 @@ def get_statements_range(
832
832
if (cache_dir != "" ) and os .path .isfile (
833
833
f"{ cache_dir } /{ yyyy } /{ cache_file } "
834
834
):
835
- df = pd .read_csv (f"{ cache_dir } /{ yyyy } /{ cache_file } " )
835
+ df = pd .read_csv (f"{ cache_dir } /{ yyyy } /{ cache_file } " , dtype = str )
836
+ df ["DisclosedDate" ] = pd .to_datetime (
837
+ df ["DisclosedDate" ], format = "%Y-%m-%d"
838
+ )
839
+ df ["CurrentPeriodEndDate" ] = pd .to_datetime (
840
+ df ["CurrentPeriodEndDate" ], format = "%Y-%m-%d"
841
+ )
842
+ df ["CurrentFiscalYearStartDate" ] = pd .to_datetime (
843
+ df ["CurrentFiscalYearStartDate" ], format = "%Y-%m-%d"
844
+ )
845
+ df ["CurrentFiscalYearEndDate" ] = pd .to_datetime (
846
+ df ["CurrentFiscalYearEndDate" ], format = "%Y-%m-%d"
847
+ )
836
848
buff .append (df )
837
849
else :
838
850
future = executor .submit (
You can’t perform that action at this time.
0 commit comments