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: `concat` throwing TypeError when `ignore_index` is True #2797

dhirschfeld opened this issue Feb 4, 2013 · 0 comments


Copy link

commented Feb 4, 2013

In [24]: dates = pd.date_range('01-Jan-2013', '01-Jan-2014', freq='MS')[0:-1]
    ...: s1 = pd.Series(randn(len(dates)), index=dates, name='value')    
    ...: s2 = pd.Series(randn(len(dates)), index=dates, name='value')

In [31]: df = pd.concat([s1, s2], axis=1, ignore_index=True)
 Traceback (most recent call last):

   File "<ipython-input-31-66b3acfe3258>", line 1, in <module>
     df = pd.concat([s1, s2], axis=1, ignore_index=True)

   File "c:\dev\code\pandas\pandas\tools\", line 895, in concat
     return op.get_result()

   File "c:\dev\code\pandas\pandas\tools\", line 972, in get_result
     data = dict(zip(self.new_axes[1], self.objs))

 TypeError: zip argument #1 must support iteration

@ghost ghost assigned wesm Feb 7, 2013

@wesm wesm closed this in 250c8e0 Mar 28, 2013

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