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
import pandas as pd pd.DataFrame([[1,2,3],[4,5,6],[7,8,9]],columns=["a?","b!","c"]).to_dict(orient="records")
Column names with non-alphanumeric characters are replaced with "_n" in 0.24.0:
"_n"
0.24.0
[{'_0': 1, '_1': 2, 'c': 3}, {'_0': 4, '_1': 5, 'c': 6}, {'_0': 7, '_1': 8, 'c': 9}]
In 0.23.4:
0.23.4
[{'a?': 1, 'b!': 2, 'c': 3}, {'a?': 4, 'b!': 5, 'c': 6}, {'a?': 7, 'b!': 8, 'c': 9}]
pd.show_versions()
pandas: 0.24.0 pytest: None pip: 19.0.1 setuptools: 40.7.0 Cython: None numpy: 1.16.0 scipy: 1.2.0 pyarrow: None xarray: None IPython: 7.2.0 sphinx: None patsy: None dateutil: 2.7.5 pytz: 2018.9 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: 3.0.2 openpyxl: None xlrd: 1.2.0 xlwt: None xlsxwriter: 1.1.2 lxml.etree: 4.3.0 bs4: None html5lib: None sqlalchemy: 1.2.17 pymysql: None psycopg2: 2.7.7 (dt dec pq3 ext lo64) jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None gcsfs: None
The text was updated successfully, but these errors were encountered:
Duplicate of #24940 fix will come out in 0.24.1
Sorry, something went wrong.
No branches or pull requests
Code Sample
Problem description
Column names with non-alphanumeric characters are replaced with
"_n"
in0.24.0
:Expected Output
In
0.23.4
:Output of
pd.show_versions()
pandas: 0.24.0
pytest: None
pip: 19.0.1
setuptools: 40.7.0
Cython: None
numpy: 1.16.0
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: None
patsy: None
dateutil: 2.7.5
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: 1.1.2
lxml.etree: 4.3.0
bs4: None
html5lib: None
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: