opfython.stream.loader¶
Data loading utilities.
- opfython.stream.loader.load_csv(csv_path: str)¶
Loads a CSV file into a numpy array.
Please make sure the .csv is uniform along all rows and columns.
- Parameters
csv_path – String holding the .csv’s path.
- Returns
A numpy array holding the loaded data.
- Return type
(np.array)
- opfython.stream.loader.load_json(json_path: str)¶
Loads a .json file into a numpy array.
Please make sure the .json is uniform along all keys and items.
- Parameters
json_path – Path to the .json file.
- Returns
A numpy array holding the loaded data.
- Return type
(np.array)
- opfython.stream.loader.load_txt(txt_path: str)¶
Loads a .txt file into a numpy array.
Please make sure the .txt is uniform along all rows and columns.
- Parameters
txt_path – A path to the .txt file.
- Returns
A numpy array holding the loaded data.
- Return type
(np.array)
- opfython.stream.loader.logger¶