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: setting dataframe index or columns raises UserWarning: Modin doesn't allow columns to be created via a new attribute name #4672

Closed
mvashishtha opened this issue Jul 12, 2022 · 0 comments · Fixed by #4721
Labels
bug 🦗 Something isn't working good first issue 🔰 Good for newcomers pandas concordance 🐼 Functionality that does not match pandas

Comments

@mvashishtha
Copy link
Collaborator

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS Monterey 12.4
  • Modin version (modin.__version__): 05933a5
  • Python version: 3.9.12
  • Code we can use to reproduce:
import modin.pandas as pd
pd.DataFrame().index = []

Describe the problem

Modin raises UserWarning: Distributing <class 'NoneType'> object. This may take some time. 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 when we set column in the code above, but pandas does not.

Source code / logs

We should fix the check here so that it only warns when setting an attribute like index or columnsthat is already indir(self)`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working good first issue 🔰 Good for newcomers pandas concordance 🐼 Functionality that does not match pandas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants