Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: warn on integer columns names #3005

Merged
merged 2 commits into from
Nov 29, 2024
Merged

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented Nov 29, 2024

Integer column names are bad practice and can lead to bugs. Narwhal's doesn't support this (for good reason), so we should try to urge users to fix their dataframes.

Copy link

vercel bot commented Nov 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 7:19pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 7:19pm

Comment on lines 65 to 66
if not DependencyManager.pandas.has():
return
Copy link
Contributor

Choose a reason for hiding this comment

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

For performance this should be not DependencyManager.pandas.imported(), since df can't be a Pandas dataframe if Pandas is not imported. Importing pandas can take a long time.

Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.9.28-dev12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants