You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out this works already, the comment kwarg gets passed down the generic parsing code, but isn't documented (or likely tested). A PR to flesh this out would be welcome
In [31]: df=pd.DataFrame({'a': ['1', '#2'], 'b': ['2', '3']})
In [32]: df.to_excel('tmp.xlsx', index=False)
In [33]: pd.read_excel('tmp.xlsx')
Out[33]:
ab0121#2 3In [34]: pd.read_excel('tmp.xlsx', comment='#')
Out[34]:
ab012
Hi @vertan, @chris-b1, I just submitted a PR referencing this, but I've only done the example for the docs. Perhaps there is more work to do here in terms of tests?
This is a feature request to add a
comment
kwarg topandas.read_excel
just likepandas.read_csv
can accept acomment
kwarg.Sorry if this request should be placed somewhere else.
The text was updated successfully, but these errors were encountered: