neurobooth_terra.query¶
- neurobooth_terra.query(conn, sql_query, column_names)[source]¶
Transform a SELECT query into a pandas dataframe
- Parameters
- conninstance of psycopg2.Postgres
The connection object
- sql_querystr
The SQL query to perform
- column_namesstr | list of str
The columns to create
- Returns
- dfinstance of Dataframe
The pandas dataframe