Dave Hirschfeld created ARROW-4824:
--------------------------------------
Summary: read_csv should accept io.StringIO objects
Key: ARROW-4824
URL: https://issues.apache.org/jira/browse/ARROW-4824
Project: Apache Arrow
Issue Type: Improvement
Components: Python
Affects Versions: 0.12.1
Reporter: Dave Hirschfeld
It would be nice/convenient if `read_csv` also supported `io.StringIO` objects:
{{In [59]: csv =
io.StringIO('''issue_date_utc,variable_name,station_name,station_id,value_date_utc,value}}
{{ ...: 2019-02-26 22:00:00,TEMPERATURE,ARCHERFIELD,040211,2019-02-27
03:00,29.1}}
{{ ...: ''')}}
{{In [60]: pd.read_csv(csv)}}
{{Out[60]: }}
{{ issue_date_utc variable_name ... value_date_utc value}}
{{0 2019-02-26 22:00:00 TEMPERATURE ... 2019-02-27 03:00 29.1}}
{{[1 rows x 6 columns]}}
{{In [61]: pa.csv.read_csv(csv)}}
{{Traceback (most recent call last):}}
{{ File "<ipython-input-61-d86447415aa3>", line 1, in <module>}}
{{ pa.csv.read_csv(csv)}}
{{SystemError: <built-in function read_csv> returned NULL without setting an
error}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)