reVX.plexos.utilities.parse_table_name
- parse_table_name(name, wait=300, db_host='gds_edit.nrel.gov', db_user=None, db_pass=None, db_port=5432)[source]
Parse a dataframe from an input name.
- Parameters:
name (str | pd.DataFrame) – CSV file path or database.schema.name or already extracted df.
wait (int) – Integer seconds to wait for DB connection to become available before raising exception.
db_host (str) – Database host name.
db_user (str) – Your database user name.
db_pass (str) – Database password (None if your password is cached).
db_port (int) – Database port.
- Returns:
df (pd.DataFrame) – Extracted table