Unverified Commit 6069aa76 authored by José Morales's avatar José Morales Committed by GitHub
Browse files

[python-package] replace `pandas.Series.iteritems` with `pandas.Series.items` (#5506)

parent 1d6d3b37
...@@ -562,7 +562,7 @@ def _check_for_bad_pandas_dtypes(pandas_dtypes_series): ...@@ -562,7 +562,7 @@ def _check_for_bad_pandas_dtypes(pandas_dtypes_series):
bad_pandas_dtypes = [ bad_pandas_dtypes = [
f'{column_name}: {pandas_dtype}' f'{column_name}: {pandas_dtype}'
for column_name, pandas_dtype in pandas_dtypes_series.iteritems() for column_name, pandas_dtype in pandas_dtypes_series.items()
if not is_allowed_numpy_dtype(pandas_dtype.type) if not is_allowed_numpy_dtype(pandas_dtype.type)
] ]
if bad_pandas_dtypes: if bad_pandas_dtypes:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment