mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-06 04:20:57 +08:00
Update part of the docs
This commit is contained in:
@@ -702,7 +702,7 @@ def load_dataset(path_or_obj):
|
||||
if isinstance(path_or_obj, pd.DataFrame):
|
||||
return path_or_obj
|
||||
if not os.path.exists(path_or_obj):
|
||||
raise ValueError(f'file {path_or_obj} doesn\'t exist')
|
||||
raise ValueError(f"file {path_or_obj} doesn't exist")
|
||||
_, extension = os.path.splitext(path_or_obj)
|
||||
if extension == ".h5":
|
||||
return pd.read_hdf(path_or_obj)
|
||||
|
||||
Reference in New Issue
Block a user