deflex.DeflexScenario.to_xlsx

DeflexScenario.to_xlsx(filename)

Store the input data into an xlsx-file.

filename : str
Full path to the filename.

Examples

>>> import deflex as dflx
>>> fn = dflx.fetch_test_files("de02_no-heat_csv")
>>> sc = dflx.DeflexScenario()
>>> # read scenario from xlsx-file
>>> sc = sc.read_csv(fn)
>>> # store scenario as csv-collection.
>>> sc.to_xlsx(fn.replace("_csv", ".xlsx"))