This function fails when recursion is over level deep. This is caused by df = df.reset_index() on line 629 in _neptune.py.
The reason is that columns index and level_0 are added in the first 2 calls of flatten_nested_df and in the 3rd call it gives this error ValueError: cannot insert level_0, already exists.
Describe the bug
This function fails when recursion is over level deep. This is caused by
df = df.reset_index()
on line 629 in_neptune.py
.The reason is that columns
index
andlevel_0
are added in the first 2 calls offlatten_nested_df
and in the 3rd call it gives this errorValueError: cannot insert level_0, already exists
.How to Reproduce
Expected behavior
Use
df = df.reset_index(drop=True)
to not insert index into dataframe columns. Expected result:Your project
No response
Screenshots
No response
OS
Mac
Python version
3.11
AWS SDK for pandas version
3.5.2
Additional context
No response