Skip to content

[SPARK-50701][PYTHON] Make plotting require the minimum plotly version#49333

Closed
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:py_plot_minimum_version
Closed

[SPARK-50701][PYTHON] Make plotting require the minimum plotly version#49333
zhengruifeng wants to merge 2 commits intoapache:masterfrom
zhengruifeng:py_plot_minimum_version

Conversation

@zhengruifeng
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Make plotting require the minimum plotly version

Why are the changes needed?

the minimum_plotly_version = "4.8" didn't take effect in existing implementation

Does this PR introduce any user-facing change?

No

How was this patch tested?

CI

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

No

fix lint

fix lint

fix circular import
@zhengruifeng zhengruifeng force-pushed the py_plot_minimum_version branch from be7e798 to 238a497 Compare December 30, 2024 09:38
)


def require_minimum_plotly_version() -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, don't we also support plot in the plain DataFrame.plot too? Then it should stay here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

@zhengruifeng zhengruifeng Dec 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this require_minimum_plotly_version is only used for plain DF.plot

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, let me keep it in the file

@zhengruifeng
Copy link
Copy Markdown
Contributor Author

thanks, merged to master

@zhengruifeng zhengruifeng deleted the py_plot_minimum_version branch December 31, 2024 07:49
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.

2 participants