Skip to content

Commit

Permalink
fix: avoid iteritems deprecation in pandas prerelease (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast authored Jan 19, 2022
1 parent d6234cc commit 7379cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_gbq/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def generate_bq_schema(dataframe, default_type="STRING"):
}

fields = []
for column_name, dtype in dataframe.dtypes.iteritems():
for column_name, dtype in dataframe.dtypes.items():
fields.append(
{"name": column_name, "type": type_mapping.get(dtype.kind, default_type)}
)
Expand Down

0 comments on commit 7379cdc

Please sign in to comment.