Utils#
Module Contents#
Functions#
If value is boolean, convert to Green Checkmark or Red X. Otherwise, leave be. |
|
Filters DataFrame by locations, which can be a list, "ALL" or None |
|
Format interconnection queue data |
|
Get interconnection queue data for all ISOs |
|
Get an ISO by its id |
|
Returns whether date is within N days |
|
List available ISOs |
|
Load a single DataFrame for same schema csv files in a folder |
|
Move columns to front of DataFrame |
Attributes Summary#
Contents#
- gridstatus.utils.convert_bool_to_emoji(value)[source]#
If value is boolean, convert to Green Checkmark or Red X. Otherwise, leave be.
- gridstatus.utils.filter_lmp_locations(df, locations=None, location_type=None)[source]#
Filters DataFrame by locations, which can be a list, “ALL” or None
- Parameters:
df (pandas.DataFrame) – DataFrame to filter
locations – “ALL” or list of locations to filter “Location” column by
- gridstatus.utils.format_interconnection_df(queue, rename, extra=None, missing=None)[source]#
Format interconnection queue data
- gridstatus.utils.load_folder(path, time_zone=None, verbose=True)[source]#
Load a single DataFrame for same schema csv files in a folder
- Parameters:
path (str) – path to folder
time_zone (str) – time zone to localize to timestamps. By default returns as UTC
verbose (bool, optional) – print verbose output. Defaults to True.
- Returns:
A DataFrame of all files
- Return type:
pandas.DataFrame