get companies changes Returns ------- pd.DataFrame: symbol date type SH600000 2019-11-11 add SH600000 2020-11-10 remove dtypes: symbol: str date: pd.Timestamp
(self)
| 101 | |
| 102 | @abc.abstractmethod |
| 103 | def get_changes(self) -> pd.DataFrame: |
| 104 | """get companies changes |
| 105 | |
| 106 | Returns |
| 107 | ------- |
| 108 | pd.DataFrame: |
| 109 | symbol date type |
| 110 | SH600000 2019-11-11 add |
| 111 | SH600000 2020-11-10 remove |
| 112 | dtypes: |
| 113 | symbol: str |
| 114 | date: pd.Timestamp |
| 115 | type: str, value from ["add", "remove"] |
| 116 | """ |
| 117 | raise NotImplementedError("rewrite get_changes") |
| 118 | |
| 119 | @abc.abstractmethod |
| 120 | def format_datetime(self, inst_df: pd.DataFrame) -> pd.DataFrame: |