We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
import pandas as pd txt = StringIO('"name";"cod";"value 1";"value 2"\n"Example 1";=("8445162064354");39,20;29,51\n"Example 2";=("2125253621573");61,20;60,82\n"Example 3";=("8787343899128");19,38;2,74\n"Example 4";=("6432992837362");69,85;51,17') df = pd.read_csv(txt, sep=None, dtype=str, engine='python') df.head()
This code does not convert the data correctly. It adds non-existent columns using the decimal values with commas as if they were unnamed columns.
I have tried different settings, such as sep=';' and decimal='.', but none of them worked.
commit : ba1cccd python : 3.10.12.final.0 python-bits : 64 OS : Linux OS-release : 6.2.0-32-generic Version : #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : pt_BR.UTF-8 LOCALE : pt_BR.UTF-8 pandas : 2.1.0 numpy : 1.23.2 pytz : 2022.1 dateutil : 2.8.2 setuptools : 65.5.1 pip : 22.3.1 Cython : None pytest : 7.1.2 hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : 4.9.1 html5lib : None pymysql : None psycopg2 : 2.9.3 jinja2 : 3.1.2 IPython : None pandas_datareader : None bs4 : 4.10.0 bottleneck : None dataframe-api-compat: None fastparquet : 0.8.3 fsspec : 2022.5.0 gcsfs : None matplotlib : None numba : None numexpr : None odfpy : None openpyxl : 3.0.10 pandas_gbq : None pyarrow : 8.0.0 pyreadstat : None pyxlsb : None s3fs : 2022.5.0 scipy : 1.11.1 sqlalchemy : 1.4.39 tables : None tabulate : 0.9.0 xarray : None xlrd : 2.0.1 zstandard : None tzdata : 2022.7 qtpy : None pyqt5 : None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
This code does not convert the data correctly. It adds non-existent columns using the decimal values with commas as if they were unnamed columns.
I have tried different settings, such as sep=';' and decimal='.', but none of them worked.
Expected Behavior
Installed Versions
INSTALLED VERSIONS
commit : ba1cccd
python : 3.10.12.final.0
python-bits : 64
OS : Linux
OS-release : 6.2.0-32-generic
Version : #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : pt_BR.UTF-8
LOCALE : pt_BR.UTF-8
pandas : 2.1.0
numpy : 1.23.2
pytz : 2022.1
dateutil : 2.8.2
setuptools : 65.5.1
pip : 22.3.1
Cython : None
pytest : 7.1.2
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.9.1
html5lib : None
pymysql : None
psycopg2 : 2.9.3
jinja2 : 3.1.2
IPython : None
pandas_datareader : None
bs4 : 4.10.0
bottleneck : None
dataframe-api-compat: None
fastparquet : 0.8.3
fsspec : 2022.5.0
gcsfs : None
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.0.10
pandas_gbq : None
pyarrow : 8.0.0
pyreadstat : None
pyxlsb : None
s3fs : 2022.5.0
scipy : 1.11.1
sqlalchemy : 1.4.39
tables : None
tabulate : 0.9.0
xarray : None
xlrd : 2.0.1
zstandard : None
tzdata : 2022.7
qtpy : None
pyqt5 : None
The text was updated successfully, but these errors were encountered: