-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: ParserError while reading a csv file generated by pandas dataframe #37620
Comments
The same code snippet works on master. Python 3.8.6 | packaged by conda-forge | (default, Oct 7 2020, 18:22:52) [MSC v.1916 64 bit (AMD64)] In [1]: import pandas as pd In [2]: df = pd.read_parquet('temp.parquet') In [3]: df [818 rows x 29 columns] In [4]: df.to_csv('temp.csv') In [5]: pd.read_csv('temp.csv') [818 rows x 30 columns] In [6]: pd.show_versions() INSTALLED VERSIONScommit : cf31d1b pandas : 1.2.0.dev0+1124.gcf31d1ba5 |
Sounds like this may have been fixed in a version > 1.2.0. Closing since this is working, but happy to reopen if this issue persists on a more recent version. |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
temp.parquet
(Please rename the file totemp.parquet
, attached by renaming to zip file) :temp.parquet.zipProblem description
The parse error occurs when we try to read the csv file generated by pandas dataframe. This error occurs to this specific dataframe. Not sure what the reason is. Hence attaching the dataframe in parquet file.
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : db08276
python : 3.7.8.final.0
python-bits : 64
OS : Linux
OS-release : 5.4.0-52-generic
Version : #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.3
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.4
setuptools : 49.6.0.post20201009
Cython : 0.29.21
pytest : 6.1.1
hypothesis : 5.37.3
sphinx : 3.2.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.4
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.51.2
Cross referencing to cudf fuzz test thread for tracking: rapidsai/cudf#6001
The text was updated successfully, but these errors were encountered: