-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Concatenating datetime with different resolution fails #55067
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
I have tested this on |
I am seeing a similar issue, but it appears to be more related to Pyarrow 13.0.0. Pandas==2.1.0 and Pyarrow==12.0.0 works fine, while Pandas==2.1.0 and Pyarrow==13.0.0 throws this error. |
@jorisvandenbossche I with investigate the issue and in case it will be related to pandas itself, I will try to fix it :) |
Some date times have us resolution which triggered concatenation bug pandas-dev/pandas#55067
what is the status of this issue? I got hit in 2.1.4 and it seems good in 2.2.0rc0 but it is not mentioned in whatsnew https://pandas.pydata.org/pandas-docs/version/2.2.0rc0/whatsnew/v2.2.0.html |
This is probably fixed by #53641. (That PR is missing a whatsnew entry, though. I'll put up a PR adding the missing whatsnew entry) |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
When concatenating datetime columns with different resolution, e.g.
ns
andus
, an array dimension error is raised.Expected Behavior
Up until pandas 2.0, this would result in the
object
dtype on the resultInstalled Versions
INSTALLED VERSIONS
commit : ba1cccd
python : 3.11.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.15.90.1-microsoft-standard-WSL2
Version : #1 SMP Fri Jan 27 02:56:13 UTC 2023
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8
pandas : 2.1.0
numpy : 1.25.2
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 68.1.2
pip : 23.2.1
Cython : None
pytest : 7.4.2
hypothesis : None
sphinx : 7.2.5
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.15.0
pandas_datareader : None
bs4 : 4.12.2
bottleneck : None
dataframe-api-compat: None
fastparquet : None
fsspec : None
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 13.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: