Skip to content

Commit 942d75c

Browse files
committed
Update docs to use from_pandas
1 parent a2dc383 commit 942d75c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/user-guide/dfs0.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ import pandas as pd
4242
df = pd.read_csv(
4343
"../data/co2-mm-mlo.csv", parse_dates=True, index_col="Date", na_values=-99.99
4444
)
45-
df.to_dfs0("mauna_loa_co2.dfs0")
45+
ds = mikeio.from_pandas(df)
46+
ds.to_dfs("mauna_loa_co2.dfs0")
4647
```
4748

4849

0 commit comments

Comments
 (0)