-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
MultiIndex.from_product throws on read-only array #15286
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
Comments
yeah this is actually raising here.
you can fix the same way as here, where we call a signature w/o memoryviews (which is a patch that we have done in the past: #10070 and here's the ultimate cause: https://mail.python.org/pipermail/cython-devel/2013-February/003384.html I would actually like to have a better method of fixing this. |
cc @wesm |
Does this still raise if you use |
no it works if we use |
This looks to work on master now. Could use a test.
|
Code Sample, a copy-pastable example if possible
Problem description
Nothing in the MultiIndex.from_product documentation suggests the inputs need to be mutable. Moreover, it is surprising that the arguments are being mutated.
Expected Output
Not raising.
Output of
pd.show_versions()
pandas: 0.19.2-ts2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: None
numpy: 1.11.3
scipy: 0.18.1
statsmodels: None
xarray: None
IPython: 5.1.0
sphinx: 1.5.1
patsy: None
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: