We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
This is a datatype thing I believe. When I construct a DataFrame and then compare rows of that, NaNs are not ignored contrary to the documentation.
import pandas as pd import numpy as np a = pd.DataFrame([{'A': 1, 'B': 'b', 'C': np.NAN}, {'A': 1, 'B': 'b', 'C': 1}]) b = pd.DataFrame([{'A': 1, 'B': 'b', 'C': np.NAN}, {'A': 1, 'B': 'b', 'C': 1}]) a.loc[0] A 1 B b C NaN Name: 0, dtype: object aa = a.loc[0] bb = b.loc[0] aa.equals(bb) False # which essentially does this in Block aa.values == bb.values Out[35]: array([ True, True, False], dtype=bool)
Constructing the series outright works as advertised.
a = pd.Series({'A': 1, 'B': 'b', 'C': np.NAN}) b = pd.Series({'A': 1, 'B': 'b', 'C': np.NAN}) a.equals(b) True a.values == b.values Out[30]: array([ True, True, True], dtype=bool)
The text was updated successfully, but these errors were encountered:
What version of pandas? Works for me in 0.15.1
Sorry, something went wrong.
0.14.0. Glad to hear it's fixed. I'll close.
Possibly fixed by #8443
No branches or pull requests
This is a datatype thing I believe. When I construct a DataFrame and then compare rows of that, NaNs are not ignored contrary to the documentation.
Constructing the series outright works as advertised.
The text was updated successfully, but these errors were encountered: