Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pd.melt does not allow a tuple for value_vars #15348
Comments
|
yep, these should use a little better validation here (and some more testing) can you do a PR? |
jreback
added API Design Bug Difficulty Novice Effort Low Reshaping
labels
Feb 8, 2017
jreback
added this to the
0.20.0
milestone
Feb 8, 2017
|
Sure, I'll take a look at it. |
jbradt
added a commit
to jbradt/pandas
that referenced
this issue
Feb 8, 2017
|
|
jbradt |
33728de
|
jbradt
referenced
this issue
Feb 8, 2017
Closed
BUG: Fixed handling of non-list value_vars in melt #15351
jreback
closed this
in 61deba5
Feb 10, 2017
AnkurDedania
added a commit
to AnkurDedania/pandas
that referenced
this issue
Mar 21, 2017
|
|
jbradt + AnkurDedania |
021f594
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jbradt commentedFeb 8, 2017
Code Sample
Problem description
The documentation says that
id_varsandvalue_varscan be tuples, lists, or ndarrays, but it doesn't work ifvalue_varsis a tuple. The function works as expected ifvalue_varsis given as a list.Output of
pd.show_versions()INSTALLED VERSIONS
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Darwin
OS-release: 16.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.19.2
nose: None
pip: 9.0.1
setuptools: 26.1.1
Cython: 0.24.1
numpy: 1.12.0
scipy: 0.18.0
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: None
tables: 3.2.3.1
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.15
pymysql: None
psycopg2: None
jinja2: 2.8
boto: None
pandas_datareader: None