Closed westernguy2 closed 3 years ago
Thanks for report this issue @westernguy2! Do you think this might be a result of the index column not being the typical ordered IntIndex, but something that looks like a result of set_index
called on a column? It might be worth seeing if other such dataframes works or breaks.
Yes, that is probably the reason this is happening, since that seems to be the main difference between the two examples. I will take a closer look at the index, thanks!
Describe the bug Pandas
DataFrame
is able to make a copy of the DataFrame by callingpd.DataFrame(df)
. This is not the case forLuxDataFrame
.To Reproduce I encountered this error using the following code:
The output DataFrame is
while it should be showing up as
This bug doesn't happen in all cases, only some cases. For example
works as expected.