@@ -134,7 +134,7 @@ def list_setups( # noqa: PLR0913
134
134
flow : int | None = None ,
135
135
tag : str | None = None ,
136
136
setup : Iterable [int ] | None = None ,
137
- output_format : Literal ["object" , "dict" , "dataframe" ] = "object " ,
137
+ output_format : Literal ["object" , "dict" , "dataframe" ] = "dataframe " ,
138
138
) -> dict | pd .DataFrame :
139
139
"""
140
140
List all setups matching all of the given filters.
@@ -146,7 +146,7 @@ def list_setups( # noqa: PLR0913
146
146
flow : int, optional
147
147
tag : str, optional
148
148
setup : Iterable[int], optional
149
- output_format: str, optional (default='object ')
149
+ output_format: str, optional (default='dataframe ')
150
150
The parameter decides the format of the output.
151
151
- If 'dict' the output is a dict of dict
152
152
- If 'dataframe' the output is a pandas DataFrame
@@ -184,7 +184,7 @@ def list_setups( # noqa: PLR0913
184
184
185
185
def _list_setups (
186
186
setup : Iterable [int ] | None = None ,
187
- output_format : Literal ["dict" , "dataframe" , "object" ] = "object " ,
187
+ output_format : Literal ["dict" , "dataframe" , "object" ] = "dataframe " ,
188
188
** kwargs : Any ,
189
189
) -> dict [int , dict ] | pd .DataFrame | dict [int , OpenMLSetup ]:
190
190
"""
@@ -197,7 +197,7 @@ def _list_setups(
197
197
198
198
setup : list(int), optional
199
199
200
- output_format: str, optional (default='dict ')
200
+ output_format: str, optional (default='dataframe ')
201
201
The parameter decides the format of the output.
202
202
- If 'dict' the output is a dict of dict
203
203
- If 'dataframe' the output is a pandas DataFrame
@@ -221,7 +221,7 @@ def _list_setups(
221
221
222
222
223
223
def __list_setups (
224
- api_call : str , output_format : Literal ["dict" , "dataframe" , "object" ] = "object "
224
+ api_call : str , output_format : Literal ["dict" , "dataframe" , "object" ] = "dataframe "
225
225
) -> dict [int , dict ] | pd .DataFrame | dict [int , OpenMLSetup ]:
226
226
"""Helper function to parse API calls which are lists of setups"""
227
227
xml_string = openml ._api_calls ._perform_api_call (api_call , "get" )
@@ -328,7 +328,7 @@ def _to_dict(
328
328
329
329
330
330
def _create_setup_from_xml (
331
- result_dict : dict , output_format : Literal ["dict" , "dataframe" , "object" ] = "object "
331
+ result_dict : dict , output_format : Literal ["dict" , "dataframe" , "object" ] = "dataframe "
332
332
) -> OpenMLSetup | dict [str , int | dict [int , Any ] | None ]:
333
333
"""Turns an API xml result into a OpenMLSetup object (or dict)"""
334
334
if output_format in ["dataframe" , "dict" ]:
0 commit comments