Andr
1
I updated my pandas version to 2.0 and get an error:
AttributeError: ‘DataFrame’ object has no attribute ‘iterItems’
Using pandas 1.5 there already was a FutureWarning: iterItems is deprecated …
Is there a way to handle this in my code or do I have to stay with the old pandas version?
1 Like
use
import pandas as pd
pd.DataFrame.iteritems = pd.DataFrame.items
Example:
import plotly.express as px
import pandas as pd
pd.DataFrame.iteritems = pd.DataFrame.items
df = px.data.iris()
fig = px.scatter_matrix(df,dimensions=[“sepal_length”, “sepal_width”, “petal_length”, “petal_width”],color=‘species’)
fig.show()
1 Like