(self, file_path: Path)
| 167 | return _calendars.tolist() |
| 168 | |
| 169 | def _get_source_data(self, file_path: Path) -> pd.DataFrame: |
| 170 | df = read_as_df(file_path, low_memory=False) |
| 171 | if self.date_field_name in df.columns: |
| 172 | df[self.date_field_name] = pd.to_datetime(df[self.date_field_name]) |
| 173 | # df.drop_duplicates([self.date_field_name], inplace=True) |
| 174 | return df |
| 175 | |
| 176 | def get_symbol_from_file(self, file_path: Path) -> str: |
| 177 | return fname_to_code(file_path.stem.strip().lower()) |
no test coverage detected