MCPcopy
hub / github.com/microsoft/qlib / _read_calendars

Method _read_calendars

scripts/dump_bin.py:187–193  ·  view source on GitHub ↗
(calendar_path: Path)

Source from the content-addressed store, hash-verified

185
186 @staticmethod
187 def _read_calendars(calendar_path: Path) -> List[pd.Timestamp]:
188 return sorted(
189 map(
190 pd.Timestamp,
191 pd.read_csv(calendar_path, header=None).loc[:, 0].tolist(),
192 )
193 )
194
195 def _read_instruments(self, instrument_path: Path) -> pd.DataFrame:
196 df = pd.read_csv(

Callers 2

dumpMethod · 0.80
__init__Method · 0.80

Calls 1

tolistMethod · 0.80

Tested by

no test coverage detected