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: read_csv with iterator=True throws AttributeError #6553

Closed
2 of 3 tasks
SiRumCz opened this issue Sep 12, 2023 · 1 comment · Fixed by #6554
Closed
2 of 3 tasks

BUG: read_csv with iterator=True throws AttributeError #6553

SiRumCz opened this issue Sep 12, 2023 · 1 comment · Fixed by #6554
Assignees
Labels
bug 🦗 Something isn't working P1 Important tasks that we should complete soon

Comments

@SiRumCz
Copy link

SiRumCz commented Sep 12, 2023

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_iter = pd.read_csv('path/to/file.csv', iterator=True)

Issue Description

AttributeError: 'TextFileReader' object has no attribute 'columns'

Expected Behavior

returns TextFileReader.

Error Logs

...
venv/lib/python3.10/site-packages/modin/core/io/text/text_file_dispatcher.py", line 1062, in _read    
    column_names = pd_df_metadata.columns
AttributeError: 'TextFileReader' object has no attribute 'columns'

Installed Versions

pd.show_versions()

INSTALLED VERSIONS

commit : b5545c6
python : 3.10.12.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.16.3-microsoft-standard-WSL2
Version : #1 SMP Fri Apr 2 22:23:49 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8

Modin dependencies

modin : 0.23.1
ray : 2.6.3
dask : None
distributed : None
hdk : None

pandas dependencies

pandas : 2.0.3
numpy : 1.25.2
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 59.6.0
pip : 23.2.1
Cython : None
pytest : 7.4.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
brotli : None
fastparquet : None
fsspec : 2023.9.0
gcsfs : None
matplotlib : 3.7.2
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 13.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.11.2
snappy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None

@SiRumCz SiRumCz added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels Sep 12, 2023
anmyachev added a commit to anmyachev/modin that referenced this issue Sep 12, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev
Copy link
Collaborator

Thanks @SiRumCz! I can reproduce the problem.

@anmyachev anmyachev added P1 Important tasks that we should complete soon and removed Triage 🩹 Issues that need triage labels Sep 12, 2023
@anmyachev anmyachev self-assigned this Sep 12, 2023
anmyachev added a commit to anmyachev/modin that referenced this issue Sep 12, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
vnlitvinov pushed a commit that referenced this issue Sep 13, 2023
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
anmyachev added a commit to anmyachev/modin that referenced this issue Oct 30, 2023
…oject#6554)

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working P1 Important tasks that we should complete soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants