zhengruifeng opened a new pull request, #37947:
URL: https://github.com/apache/spark/pull/37947
### What changes were proposed in this pull request?
Use `pd.items` instead of `pd.iteritems`
### Why are the changes needed?
`pd.iteritems` is deprecated in 1.5
before:
```
In [4]: import pyspark.pandas as ps
In [5]: ps.Series([3, 4, 1, 1, 5])
/Users/ruifeng.zheng/Dev/spark/python/pyspark/pandas/internal.py:1573:
FutureWarning: iteritems is deprecated and will be removed in a future version.
Use .items instead.
fields = [
/Users/ruifeng.zheng/Dev/spark/python/pyspark/sql/pandas/conversion.py:486:
FutureWarning: iteritems is deprecated and will be removed in a future version.
Use .items instead.
for column, series in pdf.iteritems():
0 3
1 4
2 1
3 1
4 5
dtype: int64
```
after:
```
In [1]: import pyspark.pandas as ps
In [2]: ps.Series([3, 4, 1, 1, 5])
0 3
1 4
2 1
3 1
4 5
dtype: int64
```
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
existing UT
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]