Skip to content
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

BUG: printing a dataframe creates warning because of initializing _cache attribute #5380

Closed
3 tasks done
mvashishtha opened this issue Dec 7, 2022 · 0 comments · Fixed by #5381
Closed
3 tasks done
Assignees
Labels
bug 🦗 Something isn't working P0 Highest priority tasks requiring immediate fix

Comments

@mvashishtha
Copy link
Collaborator

mvashishtha commented Dec 7, 2022

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

import modin.pandas as pd
df = pd.DataFrame([1])
print(df)

Issue Description

This is a regression caused by #5311. pandas cache_readonly sets _cache to a dictionary of cached values, and Modin doesn't recognize that _cache is a special name.

Expected Behavior

No warning

Error Logs

UserWarning: Modin doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access

Installed Versions

INSTALLED VERSIONS

commit : 2bb9a1f
python : 3.8.13.final.0
python-bits : 64
OS : Darwin
OS-release : 21.5.0
Version : Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

Modin dependencies

modin : 0.17.0+70.g2bb9a1fa
ray : 2.1.0
dask : 2022.12.0
distributed : 2022.12.0
hdk : None

pandas dependencies

pandas : 1.5.2
numpy : 1.23.1
pytz : 2022.1
dateutil : 2.8.2
setuptools : 61.2.0
pip : 22.1.2
Cython : None
pytest : 7.1.2
hypothesis : None
sphinx : 5.1.1
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.9.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.4.0
pandas_datareader: None
bs4 : 4.11.1
bottleneck : None
brotli : None
fastparquet : 2022.11.0
fsspec : 2022.7.1
gcsfs : None
matplotlib : 3.5.2
numba : None
numexpr : 2.8.3
odfpy : None
openpyxl : 3.0.10
pandas_gbq : 0.17.7
pyarrow : 8.0.0
pyreadstat : None
pyxlsb : None
s3fs : 2022.7.1
scipy : 1.9.0
snappy : None
sqlalchemy : 1.4.39
tables : 3.7.0
tabulate : 0.9.0
xarray : 2022.6.0
xlrd : 2.0.1
xlwt : None
zstandard : None
tzdata : None

@mvashishtha mvashishtha added bug 🦗 Something isn't working Triage 🩹 Issues that need triage P0 Highest priority tasks requiring immediate fix and removed Triage 🩹 Issues that need triage labels Dec 7, 2022
@mvashishtha mvashishtha self-assigned this Dec 7, 2022
mvashishtha pushed a commit to mvashishtha/modin that referenced this issue Dec 7, 2022
Signed-off-by: mvashishtha <mahesh@ponder.io>
anmyachev pushed a commit that referenced this issue Dec 8, 2022
Signed-off-by: mvashishtha <mahesh@ponder.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working P0 Highest priority tasks requiring immediate fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant