1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-10 06:20:57 +08:00

add handler pickle attr, enhance init_instance_by_config

This commit is contained in:
Young
2021-10-26 23:32:33 +08:00
parent c6bb11fe56
commit 5fa56703ae
3 changed files with 18 additions and 5 deletions

View File

@@ -124,7 +124,8 @@ class SDFLoc:
if isinstance(args, str):
return self._sdf[args]
elif isinstance(args, (tuple, list)):
return SepDataFrame({k: self._sdf[k] for k in args}, join=self.join)
new_df_dict = {k: self._sdf[k] for k in args}
return SepDataFrame(new_df_dict, join=self.join if self.join in args else args[0])
else:
raise NotImplementedError(f"This type of input is not supported")
elif self.axis == 0: