Skip to content
Snippets Groups Projects
Commit ac9f446e authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed broken state after faulty columns assignment

parent e7a19f90
No related branches found
No related tags found
No related merge requests found
......@@ -198,9 +198,10 @@ class DictOfSeries:
@columns.setter
def columns(self, cols):
self._data.index = cols
if not self._data.index.is_unique:
index = pd.Index(cols)
if not index.is_unique:
raise ValueError("columns index must have unique values")
self._data.index = index
@property
def values(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment