Skip to content

BUG: ExtensionArray._formatter does not need to handle nulls #30861

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

Merged

Conversation

jorisvandenbossche
Copy link
Member

See https://github.com/pandas-dev/pandas/pull/30821/files#r364917242

Currently, I don't think this is really specified whether the _formatter of ExtensionArray should be able to handle NAs/nulls or not, but in practice, it didn't need to do that. And eg the geopandas one is also implemented right now that it would fail if passed a NA (https://github.com/geopandas/geopandas/blob/add5fe9139883fa54d14fa28426478619948349c/geopandas/array.py#L1026-L1047)

This is certainly something that can be discussed how to specify this, but for now I think it is best to preserve the existing behaviour.

@jorisvandenbossche
Copy link
Member Author

cc @TomAugspurger

@jorisvandenbossche jorisvandenbossche added this to the 1.0.0 milestone Jan 9, 2020
@TomAugspurger TomAugspurger mentioned this pull request Jan 9, 2020
@jorisvandenbossche jorisvandenbossche merged commit 371b79e into pandas-dev:master Jan 9, 2020
@jorisvandenbossche jorisvandenbossche deleted the formatter-na branch January 9, 2020 20:19
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