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/8494 below:

Setting the label parameter in the call to DF.plot alters the DataFrame's index name · Issue #8494 · pandas-dev/pandas · GitHub

Setting the label parameter in the call to df.plot alters the DataFrame's index name. For example,

df = pd.DataFrame(data=np.random.rand(5,3), index=np.arange(5), columns=['A', 'B', 'C'])
df.index.name='RowNumber'
df.plot(y='B', label='Test')
print df.index.name

Out[1]: Test

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