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: AttributeError: 'bool' object has no attribute 'all' #7276

Closed
2 of 3 tasks
lapnd opened this issue May 16, 2024 · 0 comments
Closed
2 of 3 tasks

BUG: AttributeError: 'bool' object has no attribute 'all' #7276

lapnd opened this issue May 16, 2024 · 0 comments
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage

Comments

@lapnd
Copy link

lapnd commented May 16, 2024

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

crit1 = pd.Series(crit1).astype(dff[col].dtype).iloc[0]

Issue Description

Hi,
I got AttributeError: 'bool' object has no attribute 'all' with folliwng code

crit1 = pd.Series(crit1).astype(dff[col].dtype).iloc[0]

Where both crit1 and dff[col].dtype are string type.
It seems this check is invalid https://github.com/modin-project/modin/blob/main/modin/core/dataframe/pandas/dataframe/dataframe.py#L1730C13-L1730C54

Expected Behavior

It works OK with original code. It is expected to work with Modin-dask

Error Logs

 File "/home/administrator/.local/lib/python3.10/site-packages/modin/core/dataframe/pandas/dataframe/dataframe.py", line 1730, in astype
    if not (col_dtypes == self_dtypes).all():
AttributeError: 'bool' object has no attribute 'all'

Installed Versions

Modin dependencies

modin : 0.30.0
ray : None
dask : 2024.4.2
distributed : 2024.4.2
hdk : None

pandas dependencies

pandas : 2.2.0
numpy : 1.26.4

@lapnd lapnd added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels May 16, 2024
@lapnd lapnd closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage
Projects
None yet
Development

No branches or pull requests

1 participant