Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
API/BUG: Index creation with named Index resets name #11193
Comments
sinhrks
added Bug API Design
labels
Sep 26, 2015
sinhrks
added this to the
0.17.1
milestone
Sep 26, 2015
sinhrks
added the
Needs Discussion
label
Sep 26, 2015
|
Same for
|
mbirdi
commented
Oct 28, 2015
|
I tried to reproduce the bug and failed. Here is a link the code examples I ran on my laptop. http://nbviewer.ipython.org/gist/mbirdi/7586ebc290bd90a73ed3 So in my examples I was able to reset the name of the index from 'x' to None. |
|
@mbirdi this reproduces on master
you need another index creation (e.g. with just a |
mbirdi
commented
Oct 29, 2015
|
well if I have something that could be a list or an Index then I want to be able to wrap it and preserve meta data. The bottom line is that we want to have API consistency. |
jreback
modified the milestone: Next Major Release, 0.17.1
Nov 13, 2015
jreback
added the
Difficulty Novice
label
Nov 13, 2015
|
I can work on this. I'll send a PR shortly. |
|
@jreback What should be the desired behaviour when the user passes
|
|
Well, one option is to use a sentinel object for the default instead, e.g., |
IamGianluca
referenced
this issue
Nov 24, 2015
Closed
BUG: Index does not inherit existing Index or DatatetimeIndex object … #11695
|
The last question ( |
jreback
modified the milestone: 0.18.0, Next Major Release
Nov 29, 2015
jreback
added a commit
that referenced
this issue
Dec 18, 2015
|
|
IamGianluca + jreback |
fc40dcc
|
|
closed by #11695 |
sinhrks commentedSep 26, 2015
A point is whether to reset existing Index name in below case. Current impl can't distinguish whether name is not passed, or passed
Noneexplicitly.