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

Method format_datetime

scripts/data_collector/index.py:120–132  ·  view source on GitHub ↗

formatting the datetime in an instrument Parameters ---------- inst_df: pd.DataFrame inst_df.columns = [self.SYMBOL_FIELD_NAME, self.START_DATE_FIELD, self.END_DATE_FIELD] Returns -------

(self, inst_df: pd.DataFrame)

Source from the content-addressed store, hash-verified

118
119 @abc.abstractmethod
120 def format_datetime(self, inst_df: pd.DataFrame) -> pd.DataFrame:
121 """formatting the datetime in an instrument
122
123 Parameters
124 ----------
125 inst_df: pd.DataFrame
126 inst_df.columns = [self.SYMBOL_FIELD_NAME, self.START_DATE_FIELD, self.END_DATE_FIELD]
127
128 Returns
129 -------
130
131 """
132 raise NotImplementedError("rewrite format_datetime")
133
134 def save_new_companies(self):
135 """save new companies

Callers 1

parse_instrumentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected