I'm trying to push data from a data frame to Google Big Query.
I set my date field of the data frame as
df['time'] = df['time'].astype('datetime64[ns]')
and I set Google's Big Query date to *DATETIME*. When I do the export from Python to GBQ, I get this error:
InvalidSchema: Please verify that the structure and data types in the DataFrame match the schema of the destination table.
If I make everything into string format, it works. I don't think you can just set a data frame field to just date, right? Is there a clever way to get this working, or do dates have to be set as strings?
TIA.