-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Different behaviour for '==' and 'equals' on DatetimeIndex #21676
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
Comments
Not sure to which degree this is related to #18435 or not. |
|
But if
In your timestamp example, if the timezones are the same,
|
Code Sample
Problem description
When handling two dataframes which had the same datetimes in their index but different timezones, I was caught off-guard when they turned out to be considered equal in some cases but not in others, like in the example above.
Is it intentional or a bug that the two equals calls return False?
Expected Output
Output of
pd.show_versions()
pandas: 0.23.1
pytest: None
pip: 10.0.1
setuptools: 39.2.0
Cython: None
numpy: 1.14.5
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: