libgs.database.PassDb.get_df

PassDb.get_df(table, where=None, limit=None, orderby=None, descending=True, raw=False)

Get data from communications database as a pandas.DataFrame object

Parameters:
  • table (str) – The table to fetch from
  • where (str, optional) – SQL syntax to append to query as WHERE=…
  • limit (int, optional) – Max number of rows to return
  • orderby (str, optional) – The column to sort by
  • descending (bool, optional) – If true: sort in descending order, otherwise sort in ascending order. Has no effect if orderby = None
  • raw (bool, optional) – If true, do not decode anything in the database into native objects. Most data will be returned as strings with encoding flags intact.
Returns:

None