-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: pd.factorize with read-only datetime64 numpy array raises ValueError #35650
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
Closed
2 of 3 tasks
Labels
Comments
pls try on 1.1 and/or master |
works on pandas latest (and master) fails on v1.0.5
|
This was fixed by #34844. a8bbe75 is the first new commit
|
take |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
[Construction with non-mutable datetime64 strings]
Expected Output
(array([0]), array(['2015-11-20T15:06:58.000000000'], dtype='datetime64[ns]'))
Output of
pd.show_versions()
/usr/local/python/python-2.7/std/lib/python2.7/site-packages/pandas/_libs/tslibs/conversion.so in View.MemoryView.memoryview_cwrapper()
/usr/local/python/python-2.7/std/lib/python2.7/site-packages/pandas/_libs/tslibs/conversion.so in View.MemoryView.memoryview.cinit()
ValueError: buffer source array is read-only
The text was updated successfully, but these errors were encountered: