[ https://issues.apache.org/jira/browse/ARROW-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661846#comment-17661846 ]
Rok Mihevc commented on ARROW-4824: ----------------------------------- This issue has been migrated to [issue #21341|https://github.com/apache/arrow/issues/21341] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [Python] 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 > Assignee: Antoine Pitrou > Priority: Minor > Labels: pull-request-available > Fix For: 0.14.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > 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 (v8.20.10#820010)