nwm_eval.utils.read_data#
- nwm_eval.utils.read_data(file_path, dtype=None, parse_dates=None)[source]#
Read data from a csv or parquet file.
- Return type:
DataFrame|GeoDataFrame- Parameters:
file_path (Path | str) – Path to the file to read, with file format determined by the file extension
.parquet). ((.csv or)
dtype (dict[str, str] | None) – Optional dictionary specifying the data types for specific columns.
parse_dates (list[str] | None) – Optional list of columns to parse as dates.
- Returns:
DataFrame or GeoDataFrame containing the data from the file.
- Return type:
pd.DataFrame | gpd.GeoDataFrame