[bug]read multiple csv files error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the reported Python snippet using iread, rbind, and to_pandas with representative CSV files, comparing behavior with and without the columns argument. Investigate the differing column types and the empty result, then verify that the issue's expected outcome—a pandas dataframe or clear conversion guidance—is met.
Written by the indexing model from the issue text.
Description
-
Did you find a bug in datatable, or maybe the bug found you?
Tell us what it is. -
How to reproduce the bug?
This part is the most important. Please provide a code snippet which, when
executed in console, demonstrates the problem. If necessary, attach any data
files to the issue.
from datatable import iread, rbind
sel_cols = ['c1', 'c2', 'c3', 'c4']
files = ["/data/" + str(f) + ".csv" for f in df_site['station_id'].tolist()]
dt_data = iread(files, columns=sel_cols, errors='ignore')
# error 1: if add 'columns' params to iread, then output is empty
dt_all = rbind(dt_data, force=True)
df_data = dt_all.to_pandas()
# error 2: if not add 'columns', then it throws error: Cannot rbind column of type str32 to a column of type int32
- What was the expected behavior?
In case it is not obvious, please tell us what result should your code
produce.
it must be return a pandas dataframe, or give me some advice how to convert int32 to str32?
- Your environment?
What is your datatable version, python version, and operating system?
centos 7
python 3.8
datatable 1.0
-
Tag the issue with
[bug]or[segfault](depending on whether it crashes
Python or not). -
Thank you for contributing, and sorry for the inconvenience.
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from h2oai/datatable
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Similar issues
-
comp-s3queue
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ClickHouse/ClickHouse#137649 ·
Maintainers usually reply within 1 day
-
Clear params.inputs in dials.indexPossibly taken @phyy-nx claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dials/dials#3361 · 1 comment ·
Maintainers usually reply within 1 day
-
difficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#2405 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
facebookexperimental/semcode#195 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100