BUG: Crosstab/Pivot_table columns.names change when toggling dropna #12645
Labels
Duplicate Report
Duplicate issue or pull request
Indexing
Related to indexing on series/frames, not to indexes themselves
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
This is not a real 'bug' maybe? But it can be annoying.
xref #12614. Independent of issue #12642.
Code Sample
Results:
res_dropnaF
shows nocolumns.names
(because they're removed) whileres_dropnaT
does.Expected Output
Extra option or consistency on column names.
Should be fixed by working on
pivot_table(): if not dropna
output of
pd.show_versions()
INSTALLED VERSION:
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Darwin
OS-release: 14.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.17.1
nose: 1.3.3
pip: 8.1.0
setuptools: 18.3.1
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.1.0
sphinx: None
patsy: 0.2.1
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
Jinja2: None
The text was updated successfully, but these errors were encountered: