Skip to content
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: Pandas Series name attribute can be array #12610

chinskiy opened this issue Mar 13, 2016 · 2 comments


None yet
2 participants
Copy link

commented Mar 13, 2016

Code Sample

import pandas as pd
import numpy as np

ndarr = np.array([1,2,3])
series1 = pd.Series(ndarr, name=['series1'])
series2 = pd.Series([1,2,3], name='series2')

result_df = pd.concat([series1, series2], axis=1)
##give **type error**


series3 = pd.Series(ndarr, name=['series1', 'series2'])
##['series1', 'series2']

Expected Output

get error when result_df try to be created with array name attribute,
or give error when try to create Series object with array argument in name attribute.

output of pd.show_versions()

commit: None
python-bits: 64
OS: Linux
OS-release: 4.2.0-30-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None

pandas: 0.18.0
nose: 1.3.7
pip: 8.1.0
setuptools: 20.2.2
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.6
patsy: 0.4.1
dateutil: 2.5.0
pytz: 2015.7
blosc: None
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.5.1
openpyxl: 2.3.3
xlrd: 0.9.4
xlwt: None
xlsxwriter: 0.8.4
lxml: 3.5.0
bs4: 4.4.1
html5lib: 1.0b8
httplib2: 0.9.2
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: 2.6.1 (dt dec pq3 ext lo64)
jinja2: 2.8
boto: None


This comment has been minimized.

Copy link

commented Mar 13, 2016

there was an old issue somewhat related: #9193

but this should be caught. want to investigate and see where this is happening?

@jreback jreback added this to the 0.18.1 milestone Mar 13, 2016


This comment has been minimized.

Copy link
Contributor Author

commented Mar 13, 2016

Okay, I'll try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.