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: dont pass fill_value to algos.take_nd from internals.concat #39446

Merged
merged 2 commits into from
Feb 1, 2021

Conversation

jbrockmendel
Copy link
Member

The dtype-finding code in internals.concat is something else. Tried untangling it, but now I think we can make it unnecessary altogether. This is the first step in that process.

def _get_default_fill_value(dtype, fill_value):
if fill_value is lib.no_default:
if is_extension_array_dtype(dtype):
fill_value = dtype.na_value
Copy link
Contributor

Choose a reason for hiding this comment

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

na_value_for_dtype

Copy link
Member Author

Choose a reason for hiding this comment

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

thats what i thought too, but its behavior is slightly different

@jreback jreback added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code labels Jan 28, 2021
@jreback jreback added this to the 1.3 milestone Feb 1, 2021
@jreback jreback merged commit a9c803c into pandas-dev:master Feb 1, 2021
@jreback
Copy link
Contributor

jreback commented Feb 1, 2021

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants