MIKE IO adds a new method to the DataFrame called to_dfs0. This method is used to save the DataFrame to a dfs0 file. (This method becomes available after importing the mikeio module.)
import pandas as pddf = pd.read_csv("../data/co2-mm-mlo.csv", parse_dates=True, index_col="Date", na_values=-99.99)df.to_dfs0("mauna_loa_co2.dfs0")