Skip to content

Commit

Permalink
Typo in error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Aug 6, 2024
1 parent b3d606d commit 913c34c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mikeio/dataset/_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,14 +2019,13 @@ def from_polars(
break

if datetime_col is None:
raise ValueError("Datetime column not found. Please specify time_col.")
raise ValueError("Datetime column not found. Please specify datetime_col.")

time = pd.DatetimeIndex(df[datetime_col])
df = df.drop(datetime_col)

# convert the polars dataframe to list of numpy arrays
array = df.to_numpy()

data = [array[:, i] for i in range(array.shape[1])]

item_list = _parse_items(df.columns, items)
Expand Down

0 comments on commit 913c34c

Please sign in to comment.