Skip to content

Commit 3fae108

Browse files
authored
iteritems -> items (#12629)
### Summary & Motivation Fixes #12604 `.iteritems` is [deprecated since 1.50 ](https://pandas.pydata.org/docs/whatsnew/v1.5.0.html#other-deprecations) and will be removed in a future version. Changing to `.items`. (pandas-dev/pandas#45321). ### How I Tested These Changes I did not, but pandas-dev/pandas#45321 appears to indicate it's a safe change to make. If I can somehow install this version of dagster on my machine, I'm happy to test using the code that surfaced the issue, but I'm not sure how to do that.
1 parent 0b6d3ea commit 3fae108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_modules/libraries/dagster-snowflake-pandas/dagster_snowflake_pandas/snowflake_pandas_type_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def handle_output(
7676
"dataframe_columns": MetadataValue.table_schema(
7777
TableSchema(
7878
columns=[
79-
TableColumn(name=name, type=str(dtype))
80-
for name, dtype in obj.dtypes.iteritems()
79+
TableColumn(name=str(name), type=str(dtype))
80+
for name, dtype in obj.dtypes.items()
8181
]
8282
)
8383
),

0 commit comments

Comments
 (0)