python - Pandas to_gbq method doesn't append -


i'm using pandas to_gbq method append table so

pd.io.gbq.to_gbq(dataframe=df,destination_table=table,                  project_id=project, if_exists="append") 

if no table exists creates table correctly. however, if table exists (even if created exact line of code above) fails error

invalidschema: please verify structure , data types in dataframe match schema of destination table. 

i know schema shouldn't problem because i'm literally appending table same code , i've checked dataframe has exact same schema. know why error? 'object' types in dataframe being converted 'strings' in bq? if so, how fix this


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -