Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
6069aa76
Unverified
Commit
6069aa76
authored
Oct 06, 2022
by
José Morales
Committed by
GitHub
Oct 06, 2022
Browse files
[python-package] replace `pandas.Series.iteritems` with `pandas.Series.items` (#5506)
parent
1d6d3b37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python-package/lightgbm/basic.py
python-package/lightgbm/basic.py
+1
-1
No files found.
python-package/lightgbm/basic.py
View file @
6069aa76
...
@@ -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
.
iter
items
()
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment