We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Best illustrated by example:
In [957]: s0 = pd.Series(["2010", np.NaN])
In [958]: s1 = pd.Series([np.NaN, "2011"])
In [959]: s0.combine_first(s1) Out[959]: 0 2010 1 2011
In [960]: s0 = pd.to_datetime(pd.Series(["2010", np.NaN]))
In [961]: s1 = pd.to_datetime(pd.Series([np.NaN, "2011"]))
In [962]: s0.combine_first(s1) Out[962]: 0 2221-02-23 04:49:47.750490112 1 2051-05-17 05:40:40.331386880
The text was updated successfully, but these errors were encountered:
marked as bug, thanks
Sorry, something went wrong.
BUG: Series.combine_first bug in the presence of timestamped data #2626
fca2d9f
added _where_compat in common.py that converts to i8 or python datetime first if necessary.
No branches or pull requests
Best illustrated by example:
In [957]: s0 = pd.Series(["2010", np.NaN])
In [958]: s1 = pd.Series([np.NaN, "2011"])
In [959]: s0.combine_first(s1)
Out[959]:
0 2010
1 2011
In [960]: s0 = pd.to_datetime(pd.Series(["2010", np.NaN]))
In [961]: s1 = pd.to_datetime(pd.Series([np.NaN, "2011"]))
In [962]: s0.combine_first(s1)
Out[962]:
0 2221-02-23 04:49:47.750490112
1 2051-05-17 05:40:40.331386880
The text was updated successfully, but these errors were encountered: