A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/10698 below:

Loss of series name attributes in pd.concat · Issue #10698 · pandas-dev/pandas · GitHub

pd.concat nicely preserves name attributes when given a list of series. However, this only works if all series have the name attribute set, otherwise all names are lost:

In [1]: import pandas as pd
In [2]: pd.__version__
Out[2]: '0.16.2'

In [3]: foo = pd.Series([1,2], name='foo')
In [4]: bar = pd.Series([1,2])

In [6]: pd.concat([foo, bar], 1)
Out[6]: 
   0  1
0  1  1
1  2  2

Not sure this qualifies as a bug.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4