I have a table in Google bigquery, where a column is set to datatype timestamp.
I have to insert data using to_gbq function of pandas.
If I set the datatype to string instead of timestamp the data is loaded into the table.
But I want the column to be timestamp datatype.
How can the column type of dataframe converted to timestamp compatible with Google bigquery.
Error
Table schema
Timestamp is stored as
int64
datatype, orint
, so if you would like to format it in such a way, you can store cast your column to this datatype in pandas.You can have the timestamp in seconds, ms, or ns.