eds_scikit.io.postgres
PostgresData
PostgresData(dbname: Optional[str] = None, schema: Optional[str] = None, user: Optional[str] = None, host: Optional[str] = None, port: Optional[int] = None)
Bases: BaseData
Source code in eds_scikit/io/postgres.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
read_sql
read_sql(sql_query: str, **kwargs) -> pd.DataFrame
Execute pandas.read_sql() on the database.
PARAMETER | DESCRIPTION |
---|---|
sql_query |
SQL query (postgres flavor)
TYPE:
|
**kwargs |
additional arguments passed to pandas.read_sql()
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
df
|
TYPE:
|
Source code in eds_scikit/io/postgres.py
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|