Skip to content

[SPARK-55403][PS] Fix no attribute 'draw' error in the plot tests with pandas 3#54186

Open
ueshin wants to merge 1 commit intoapache:masterfrom
ueshin:issues/SPARK-55403/plot
Open

[SPARK-55403][PS] Fix no attribute 'draw' error in the plot tests with pandas 3#54186
ueshin wants to merge 1 commit intoapache:masterfrom
ueshin:issues/SPARK-55403/plot

Conversation

@ueshin
Copy link
Member

@ueshin ueshin commented Feb 6, 2026

What changes were proposed in this pull request?

Fixes no attribute 'draw' error in the plot tests with pandas 3.

Why are the changes needed?

The plot tests fail with the following error working with pandas 3:

Traceback (most recent call last):
...
  File "/.../python/pyspark/pandas/plot/matplotlib.py", line 971, in _plot
    plot_obj.draw()
    ^^^^^^^^^^^^^
AttributeError: 'PandasOnSparkAreaPlot' object has no attribute 'draw'

Does this PR introduce any user-facing change?

No.

How was this patch tested?

The existing tests should pass.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions
Copy link

github-actions bot commented Feb 6, 2026

JIRA Issue Information

=== Sub-task SPARK-55403 ===
Summary: Fix no attribute 'draw' error in the plot tests with pandas 3
Assignee: None
Status: Open
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

@ueshin
Copy link
Member Author

ueshin commented Feb 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants