Closed evamaxfield closed 5 years ago
Add two new functions to the Database ABC and all children that allow for the return of data as dictionary or as dataframe:
Dictionary Example:
db.select_rows_as_dict("event") # returns # { # "abcd": {"created": ...} # "efgh": {"created": ...} # }
DataFrame Example:
db.select_rows_as_dataframe("event") # returns # <pandas.core.frame.DataFrame>
Add two new functions to the Database ABC and all children that allow for the return of data as dictionary or as dataframe:
Dictionary Example:
DataFrame Example: