Skip to content

Commit

Permalink
fix: proper guard against neither df nor output_spec specified in…
Browse files Browse the repository at this point in the history
… `get_value_col_str_name`
  • Loading branch information
HLasse committed Feb 9, 2023
1 parent 45245a3 commit aeef039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeseriesflattener/multi_index_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_value_col_str_name(
Args:
df (pd.DataFrame): Dataframe to get value column name from.
output_spec (TemporalSpec): Output specification"""
if df or output_spec:
if df is not None or output_spec is not None:
return (
df["value"].columns.tolist() # type: ignore
if isinstance(df.columns, pd.MultiIndex) # type: ignore
Expand Down

0 comments on commit aeef039

Please sign in to comment.