Closed
Description
When both a float and integer field exist, integer fields (int64) are serialized as floats, resulting in an error from BigQuery (because in schema the field is defined as Integer).
df = pd.DataFrame([[1,1.1],[2,2.2] ],
index=['row 1', 'row 2'],
columns=['intColumn','floatColumn'])
# correct output
df.to_json()
# incorrect output (method used by pandas-gbq)
row = df.iloc[0]
row.to_json()
# correct output
df[['intColumn']].iloc[0].to_json()