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

REF: implement make_na_array #43606

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Sep 16, 2021

Will be able to re-use make_na_array for AM and possibly BM._make_na_block

@@ -449,6 +414,40 @@ def get_reindexed_values(self, empty_dtype: DtypeObj, upcasted_na) -> ArrayLike:
return values


def make_na_array(dtype: DtypeObj, shape: Shape) -> ArrayLike:
Copy link
Contributor

Choose a reason for hiding this comment

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

cool, FYI https://github.com/pandas-dev/pandas/blob/master/pandas/core/dtypes/cast.py#L1850 are somewhat similar in function (though not na)

@jreback jreback added Internals Related to non-user accessible pandas implementation Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Sep 16, 2021
@jreback jreback added this to the 1.4 milestone Sep 16, 2021
@jreback jreback merged commit 4bb4b52 into pandas-dev:master Sep 16, 2021
@jbrockmendel jbrockmendel deleted the ref-make_na_array branch September 16, 2021 21:09
jorisvandenbossche added a commit to jorisvandenbossche/pandas that referenced this pull request Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants