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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -