@@ -182,15 +182,15 @@ def as_dataframe(self) -> None:
182
182
column_tuples = set ()
183
183
data_rows = []
184
184
for record in self ._records :
185
- flat_record = {}
185
+ flat_record = {} # type: Dict[Any, Any]
186
186
187
187
input_data = record .get ("input_data" , {})
188
188
if isinstance (input_data , dict ):
189
189
for k , v in input_data .items ():
190
190
flat_record [("input_data" , k )] = v
191
191
column_tuples .add (("input_data" , k ))
192
192
else :
193
- flat_record [("input_data" , "" )] = input_data # Use empty string for single input
193
+ flat_record [("input_data" , "" )] = input_data
194
194
column_tuples .add (("input_data" , "" ))
195
195
196
196
expected_output = record .get ("expected_output" , {})
@@ -199,7 +199,7 @@ def as_dataframe(self) -> None:
199
199
flat_record [("expected_output" , k )] = v
200
200
column_tuples .add (("expected_output" , k ))
201
201
else :
202
- flat_record [("expected_output" , "" )] = expected_output # Use empty string for single output
202
+ flat_record [("expected_output" , "" )] = expected_output
203
203
column_tuples .add (("expected_output" , "" ))
204
204
205
205
for k , v in record .get ("metadata" , {}).items ():
0 commit comments