You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @WillAyd, I'm new to the pandas repository, and I think I've found the problem with this issue. However, I don't know exactly how to change this transformation in the code.
This happens in the ArrowExtensionArray, on the function _box_pa_scalar
I made a change that solves the issue specifically in the "Reproducible Example," but I think there are some similar problems that need to be solved. It is necessary to explore this problem more.
For example, if you do the opposite, as you do in this example, the same thing happens, but this time, 'ns' will be inferred.
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
Assigning a datetime value to a pyarrow date array type seems to implicitly drop the time components
Expected Behavior
Should raise TypeError
Installed Versions
In [24]: pd.version
Out[24]: '3.0.0.dev0+681.g434fda08cf'
In [25]: pa.version
Out[25]: '15.0.0'
The text was updated successfully, but these errors were encountered: