1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-07 04:50:56 +08:00

download orderbook data

This commit is contained in:
Linlang
2024-03-05 17:01:13 +08:00
parent 98f569eed2
commit fbe5695eda
3 changed files with 10 additions and 4 deletions

View File

@@ -71,11 +71,15 @@ def fetch_df_by_index(
if fetch_orig:
for slc in idx_slc:
if slc != slice(None, None):
return df.loc[pd.IndexSlice[idx_slc],] # noqa: E231
return df.loc[
pd.IndexSlice[idx_slc],
] # noqa: E231
else: # pylint: disable=W0120
return df
else:
return df.loc[pd.IndexSlice[idx_slc],] # noqa: E231
return df.loc[
pd.IndexSlice[idx_slc],
] # noqa: E231
def fetch_df_by_col(df: pd.DataFrame, col_set: Union[str, List[str]]) -> pd.DataFrame: