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

Unable to read non-comma delimited files with ray.dataframe.read_csv #1887

Closed
ian-whitestone opened this issue Apr 12, 2018 · 2 comments
Closed

Comments

@ian-whitestone
Copy link

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS Sierra 10.12.6
  • Ray installed from (source or binary): Installed with pip pip install ray
  • Ray version: 0.4.0
  • Python version: Python 3.6.4 |Anaconda, Inc.|

Describe the problem

I am unable to get the ray.dataframe.read_csv to properly read a pipe delimited file into a dataframe. Reading a comma-separated file works fine.

Here are two dummy text files I created:

pipe_delimited.txt

a|b|c
1|2|3
4|5|6
7|8|9
10|11|12

comma_delimited.txt

a,b,c
1,2,3
4,5,6
7,8,9
10,11,12
>>> import ray.dataframe as pd

>>> df = pd.read_csv('pipe_delimited.txt', delimiter='|')
>>> print (df.shape)
>>> print (df.columns)
(4, 1)
Index(['a|b|c'], dtype='object')

>>> df = pd.read_csv('comma_delimited.txt', delimiter=',')
>>> print (df.shape)
>>> print (df.columns)
(4, 3)
Index(['a', 'b', 'c'], dtype='object')
@p-yang
Copy link
Contributor

p-yang commented Apr 13, 2018

Hi @ian-whitestone, thanks for posting this! Can confirm the same behavior on my side (in fact, I'm getting a length-mismatch error on my side). This should be fixed by #1894

@devin-petersohn
Copy link
Member

devin-petersohn commented Jul 30, 2018

@ian-whitestone Closing this as it should be resolved. Please open a new issue in the Modin repo if the problem persists, or if you encounter a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants