File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " ssb-model-solver"
3- version = " 1.4.0 "
3+ version = " 1.4.1 "
44description = " Class to define, block analyse and solve dynamic and algebraic models numerically"
55authors = [" Benedikt Goodman <benedikt.goodman@ssb.no>" ]
66license = " MIT"
Original file line number Diff line number Diff line change @@ -844,11 +844,11 @@ def _validate_unique_column_names(df: pd.DataFrame) -> None:
844844 2. If any column names are duplicated (error message will include
845845 which columns are duplicated and their count)
846846 """
847- col_counts = df .columns .value_counts ().sum ()
848- if col_counts == 0 :
847+ total_columns = df .columns .value_counts ().sum ()
848+ if total_columns == 0 :
849849 raise ValueError ("DataFrame has no columns" )
850850
851- if len ( df . columns ) > df .columns .nunique ():
851+ if total_columns > df .columns .nunique ():
852852 counts = df .columns .value_counts ()
853853 duplicates = counts [counts > 1 ]
854854 raise ValueError (
You can’t perform that action at this time.
0 commit comments