ValueError: buffer source array is read-only on DatetimeIndex with one element #28055
# Your code here import pandas as pd import numpy as np times = np.array([np.datetime64('2012-02-15T12:00:00.000000000')]) times.setflags(write=False) [d for d in pd.to_datetime(times)]
The above code raises a
Note: This code snippet is just for demonstration. Read-only arrays are generated e.g. from an xarray
This did not happen for pandas<=0.25.0
The text was updated successfully, but these errors were encountered:
I prefer to keep those issue on a milestone. If you want to get the queue clear on 0.25.1, it can be 0.25.2 (but for me just a 0.25.x milestone could also do). If not for 0.25.1/2, then 1.0. By default, I think we should mark regressions for the next milestone, even if nobody is directly going to work on it.
On Wed, Aug 21, 2019 at 1:46 PM Joris Van den Bossche < ***@***.***> wrote: I prefer to keep those issue on *a* milestone. If you want to get the queue clear on 0.25.1, it can be 0.25.2 (but for me just a 0.25.x milestone could also do). If not for 0.25.1/2, then 1.0. By default, I think we should mark regressions for the next milestone, even if nobody is directly going to work on it. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#28055?email_source=notifications&email_token=AAKAOIV5MK7T5TGUOYOQYRLQFWEQLA5CNFSM4IOCVAGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD42XZAQ#issuecomment-523598978>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAKAOITTOR2VV7XIBZ7CWZLQFWEQLANCNFSM4IOCVAGA> .
* master: (40 commits) DOC: Fix GL01 and GL02 errors in the docstrings (pandas-dev#27988) Remove Encoding of values in char** For Labels (pandas-dev#27618) TYPING: more type hints for io.formats.printing (pandas-dev#27765) TST: fix compression tests when run without virtualenv/condaenv (pandas-dev#28051) DOC: Start 0.25.2 (pandas-dev#28111) DOC: Fix docstrings lack of punctuation (pandas-dev#28031) DOC: Remove alias for numpy.random.randn from the docs (pandas-dev#28082) DOC: update GroupBy.head()/tail() documentation (pandas-dev#27844) BUG: timedelta merge asof with tolerance (pandas-dev#27650) BUG: Series.rename raises error on values accepted by Series construc… (pandas-dev#27814) Preserve index when setting new column on empty dataframe. (pandas-dev#26471) BUG: Fixed groupby quantile for listlike q (pandas-dev#27827) BUG: iter with readonly values, closes pandas-dev#28055 (pandas-dev#28074) TST: non-strict xfail for period test (pandas-dev#28072) DOC: Update whatsnew (pandas-dev#28073) CI: disable codecov (pandas-dev#28065) CI: Set SHA for codecov upload (pandas-dev#28067) BUG: Correct the previous bug fixing on xlim for plotting (pandas-dev#28059) CI: Add pip dependence explicitly (pandas-dev#28008) DOC: Change document code prun in a row (pandas-dev#28029) ...