MCPcopy Index your code
hub / github.com/microsoft/qlib / _get_source_data

Method _get_source_data

scripts/dump_bin.py:169–174  ·  view source on GitHub ↗
(self, file_path: Path)

Source from the content-addressed store, hash-verified

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())

Callers 2

_get_dateMethod · 0.95
_dump_binMethod · 0.95

Calls 1

read_as_dfFunction · 0.85

Tested by

no test coverage detected