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

fix: use nw.Unknown for unknown dtypes #904

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Sep 3, 2024

Rather than raise an error, we should just use nw.Unknown, like we do for the pandas backend. Then at least inspecting .schema won't crash. This is useful because you might want to just select, say, all string columns, and not care that there exists some unrecognised type
having said that, we could and should expand which dtypes we recognise

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

  • Related issue #
  • Closes #

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

@github-actions github-actions bot added the fix label Sep 3, 2024
@MarcoGorelli MarcoGorelli merged commit cb8a5a2 into narwhals-dev:main Sep 3, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant