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

fix comments

This commit is contained in:
bxdd
2021-07-03 18:42:40 +00:00
parent 8dd5788bac
commit ecf2f24d59
3 changed files with 23 additions and 21 deletions

View File

@@ -37,8 +37,12 @@ class BaseHandlerStorage:
Return the original data instead of copy if possible.
proc_func: Callable
please refer to the doc of DataHandler.fetch
"""
Returns
-------
pd.DataFrame
the dataframe fetched
"""
raise NotImplementedError("fetch is method not implemented!")
@staticmethod
@@ -46,6 +50,7 @@ class BaseHandlerStorage:
raise NotImplementedError("from_df method is not implemented!")
def is_proc_func_supported(self):
"""whether the arg `proc_func` in `fetch` method is supported."""
raise NotImplementedError("is_proc_func_supported method is not implemented!")
@@ -113,4 +118,5 @@ class HasingStockStorage(BaseHandlerStorage):
return pd.concat(fetch_stock_df_list, sort=False, copy=~fetch_orig)
def is_proc_func_supported(self):
"""the arg `proc_func` in `fetch` method is not supported in HasingStockStorage"""
return False