records icon indicating copy to clipboard operation
records copied to clipboard

datetimes lost in conversion

Open frenchja opened this issue 7 years ago • 1 comments

I'm not yet sure if the issue is with records or tablib.

  1. Generate some rows from a query: records.Database().query()
  2. Export to a Pandas DataFrame: rows.export('df')
  3. Resulting timestamps are seen as objects in Pandas.

However, if you instead generate the dataframe directly from the dict, it works:

pandas_table = pd.DataFrame(rows.as_dict())

frenchja avatar Mar 12 '18 18:03 frenchja

Could you provide reproducible case with piece of code? Creating the table, query to run.

vlcinsky avatar Apr 26 '18 21:04 vlcinsky