Open SteffenMeinecke opened 2 years ago
pp.available_std_types returns a DataFrame, with the names of types as the index. The third option is attractive because it makes the std_types more transparent, and probably would simplify learning pandapower.
one thing to consider (maybe its the same as in all other net dataframes?): There are some optional parameters, e.g. max_tap
, which would destroy the integer dtype if not given and nullable integer dtypes are not used.
I think we should go ahead and implement option 2
I think most consistent with other net datastructure would be option 3: e.g. bus_geodata and line_geodata are also stored as dataframes directly in net.
@rbolgaryn and me agreed on option 3 but with singular names, e.g. net.line_std_type
or net.trafo3w_std_type
.
Options:
type(net.std_types["line"]["149-AL1/24-ST1A 10.0"])
->dict (in dict in dict)type(net.std_types["line"].loc[["149-AL1/24-ST1A 10.0"]])
->dataframe (in dict)type(net.line_types.loc[["149-AL1/24-ST1A 10.0"]])
->dataframe