-
-
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
Factorize fails with read-only array #12813
Comments
yeah this is a cython bug, you can try same soln as in: #10070 |
jreback
added
Bug
Compat
pandas objects compatability with Numpy or Python functions
Difficulty Intermediate
labels
Apr 6, 2016
3 tasks
this can be easily fixed after #21688 |
xhochy
added a commit
to xhochy/pandas
that referenced
this issue
Jul 8, 2018
jreback
pushed a commit
that referenced
this issue
Jul 8, 2018
Sup3rGeo
pushed a commit
to Sup3rGeo/pandas
that referenced
this issue
Oct 1, 2018
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Mar 10, 2023
Upstream bug pandas-dev/pandas#12813 is fixed
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Mar 18, 2023
Upstream bug pandas-dev/pandas#12813 is fixed
dcherian
added a commit
to dcherian/xarray
that referenced
this issue
Mar 30, 2023
Upstream bug pandas-dev/pandas#12813 is fixed
dcherian
added a commit
to pydata/xarray
that referenced
this issue
May 4, 2023
* Introduce Grouper objects. * Remove a copy after stacking for a groupby. Upstream bug pandas-dev/pandas#12813 is fixed * Fix typing * [WIP] typing * Cleanup * [WIP] * group as Variable? * Revert "group as Variable?" This reverts commit 2a36e21a031b9e061b932682758551956f3f06d2. * Small cleanup * De-duplicate alignment check * Fix resampling * Bugfix * Partial reverts commit 22ad7fa. * fix tests * small cleanup * more cleanup * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add ResolvedGrouper class * GroupBy only handles ResolvedGrouper objects. Much cleaner! * review feedback * minimize diff * dataclass * moar dataclass Co-authored-by: Illviljan <[email protected]> * Add typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Ignore type checking error. * Update groupby.py * Move factorize to _factorize * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update groupby.py * Update xarray/core/groupby.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Calculate group_indices only when necessary * Revert "Calculate group_indices only when necessary" This reverts commit 917c77efb05bacffcf901e61eabb9defc9a429d7. * Fix regression from deep copy --------- Co-authored-by: Illviljan <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
same as in #15286
Factorize raises a cython error when used with a read-only array. Seems related to #10043 and #10070. I discovered this via xarray via pydata/xarray#818.
Code Sample, a copy-pastable example if possible
Raises the following
Expected Output
Should be the same as with a non-read-only array
output of
pd.show_versions()
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.0
nose: 1.3.7
pip: 8.1.0
setuptools: 20.2.2
Cython: 0.22.1
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.6.1
xarray: 0.7.2-4-g33efdcd
IPython: 4.0.0
sphinx: 1.2.3
patsy: 0.3.0
dateutil: 2.5.0
pytz: 2016.1
blosc: None
bottleneck: 1.0.0
tables: 3.2.1.1
numexpr: 2.5.1
matplotlib: 1.4.3
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 1.0.0
xlsxwriter: 0.7.3
lxml: 3.4.4
bs4: 4.3.2
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.5
pymysql: None
psycopg2: 2.6 (dt dec pq3 ext)
jinja2: 2.8
boto: 2.38.0
The text was updated successfully, but these errors were encountered: