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

Index creation with named Index resets name · Issue #11193 · pandas-dev/pandas · GitHub

import pandas as pd
idx = pd.Index([1, 2 ,3], name='x')
pd.Index(idx)
# Int64Index([1, 2, 3], dtype='int64')

A point is whether to reset existing Index name in below case. Current impl can't distinguish whether name is not passed, or passed None explicitly.

pd.Index(idx, name=None)
# -> should reset name?

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