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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user