-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
ValueError: buffer source array is read-only on DatetimeIndex with one element #28055
Comments
May need a fix similar to https://github.com/pandas-dev/pandas/pull/27946/files, but in |
Looks like in pd._libs.tslib.ints_to_pydatetime the argument |
FYI @jorisvandenbossche I'm probably doing the release todayish, so I'm going to move this off the 0.25.1 milestone. |
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. |
Sounds good.
…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>
.
|
…8074) * BUG: iter with readonly values, closes pandas-dev#28055 * whatsnew
…8074) * BUG: iter with readonly values, closes pandas-dev#28055 * whatsnew
* 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) ...
Code Sample
Problem description
The above code raises a
ValueError: buffer source array is read-only
during the iteration over theDatetimeIndex
.Note: This code snippet is just for demonstration. Read-only arrays are generated e.g. from an xarray
broadcast
.This did not happen for pandas<=0.25.0
Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: