You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: When trying to plot disparity using the Aequitas plot_disparity function, I encountered the following error:
csharp
Copy code
AttributeError: 'Series' object has no attribute 'iteritems'
This occurs when trying to visualize disparities with the following line of code:
python
Copy code
ap.disparity(bdf, metrics, 'Age_Level', fairness_threshold=disparity_tolerance)
Steps to Reproduce:
Initialize the Aequitas Plot object.
Attempt to call ap.disparity(bdf, metrics, 'Age_Level', fairness_threshold=disparity_tolerance) using a precomputed bdf DataFrame.
The error occurs when trying to convert the data to a dictionary for visualization.
Expected Behavior: The disparity plot should be displayed for the specified metrics and attribute ('Age_Level') without raising an error.
Environment:
Python version: (e.g., 3.10)
Aequitas version: (e.g., latest)
Pandas version: (e.g., 1.3.0)
Altair version: (e.g., 4.0)
Additional Context: This error seems to be related to how Altair processes Pandas DataFrames. The iteritems method has been deprecated in recent versions of Pandas and replaced by items. This might be causing the issue during data transformation.
Please advise on how to resolve this or if a fix can be applied.
The text was updated successfully, but these errors were encountered:
Description: When trying to plot disparity using the Aequitas plot_disparity function, I encountered the following error:
csharp
Copy code
AttributeError: 'Series' object has no attribute 'iteritems'
This occurs when trying to visualize disparities with the following line of code:
python
Copy code
ap.disparity(bdf, metrics, 'Age_Level', fairness_threshold=disparity_tolerance)
Steps to Reproduce:
Initialize the Aequitas Plot object.
Attempt to call ap.disparity(bdf, metrics, 'Age_Level', fairness_threshold=disparity_tolerance) using a precomputed bdf DataFrame.
The error occurs when trying to convert the data to a dictionary for visualization.
Expected Behavior: The disparity plot should be displayed for the specified metrics and attribute ('Age_Level') without raising an error.
Environment:
Python version: (e.g., 3.10)
Aequitas version: (e.g., latest)
Pandas version: (e.g., 1.3.0)
Altair version: (e.g., 4.0)
Additional Context: This error seems to be related to how Altair processes Pandas DataFrames. The iteritems method has been deprecated in recent versions of Pandas and replaced by items. This might be causing the issue during data transformation.
Please advise on how to resolve this or if a fix can be applied.
The text was updated successfully, but these errors were encountered: