@@ -231,28 +231,28 @@ def test__transform_preprocess(self, real_training_data, metadata):
231
231
# Assert
232
232
expected_transformed = {
233
233
'real_training_data' : pd .DataFrame ({
234
- 'target' : [1 , 0 , 0 ],
235
- 'numerical' : [1 , 2 , 3 ],
236
- 'categorical' : [0 , 1 , 1 ],
237
- 'boolean' : [1 , 0 , 1 ],
234
+ 'target' : pd . Series ( [1 , 0 , 0 ], dtype = 'int64' ) ,
235
+ 'numerical' : pd . Series ( [1 , 2 , 3 ], dtype = 'int64' ) ,
236
+ 'categorical' : pd . Series ( [0 , 1 , 1 ], dtype = 'int64' ) ,
237
+ 'boolean' : pd . Series ( [1 , 0 , 1 ], dtype = 'int64' ) ,
238
238
'datetime' : pd .to_numeric (
239
239
pd .to_datetime (['2021-01-01' , '2021-01-02' , '2021-01-03' ])
240
240
),
241
241
}),
242
242
'synthetic_data' : pd .DataFrame ({
243
- 'target' : [1 , 0 , 0 ],
244
- 'numerical' : [1 , 2 , 3 ],
245
- 'categorical' : [0 , 1 , 1 ],
246
- 'boolean' : [1 , 0 , 1 ],
243
+ 'target' : pd . Series ( [1 , 0 , 0 ], dtype = 'int64' ) ,
244
+ 'numerical' : pd . Series ( [1 , 2 , 3 ], dtype = 'int64' ) ,
245
+ 'categorical' : pd . Series ( [0 , 1 , 1 ], dtype = 'int64' ) ,
246
+ 'boolean' : pd . Series ( [1 , 0 , 1 ], dtype = 'int64' ) ,
247
247
'datetime' : pd .to_numeric (
248
248
pd .to_datetime (['2021-01-01' , '2021-01-02' , '2021-01-03' ])
249
249
),
250
250
}),
251
251
'real_validation_data' : pd .DataFrame ({
252
- 'target' : [1 , 0 , 0 ],
253
- 'numerical' : [1 , 2 , 3 ],
254
- 'categorical' : [0 , 1 , 1 ],
255
- 'boolean' : [1 , 0 , 1 ],
252
+ 'target' : pd . Series ( [1 , 0 , 0 ], dtype = 'int64' ) ,
253
+ 'numerical' : pd . Series ( [1 , 2 , 3 ], dtype = 'int64' ) ,
254
+ 'categorical' : pd . Series ( [0 , 1 , 1 ], dtype = 'int64' ) ,
255
+ 'boolean' : pd . Series ( [1 , 0 , 1 ], dtype = 'int64' ) ,
256
256
'datetime' : pd .to_numeric (
257
257
pd .to_datetime (['2021-01-01' , '2021-01-02' , '2021-01-03' ])
258
258
),
0 commit comments