Database.retrieve_entries

Database.retrieve_entries(table_name: str, conditions: Union[str, List[str]])pandas.core.frame.DataFrame[source]

Retrieves entries from a table with given conditions.

Parameters
  • table_name (str) – Name of the table to query

  • conditions (str, List[str]) – Condition (or list of conditions) for data selection

Returns

Pandas Dataframe with retrieved data, and column names as indexes

Return type

DataFrame

Raises

psycopg2.Error – Base exception for all kind of database errors.