@@ -29,8 +29,7 @@ def __init__(
2929
3030 if not isinstance (dataset_2 , pd .DataFrame ):
3131 raise AttributeError ("Dataset 2 must be a pandas DataFrame" )
32-
33-
32+
3433 if matching_type == 'CONTENT' :
3534 dataset_1 , dataset_2 , ground_truth = self .load_content (dataset_1 , dataset_2 , ground_truth , skip_ground_truth_processing )
3635 elif matching_type == 'COMPOSITE' :
@@ -55,7 +54,6 @@ def load_content(self,
5554 ground_truth : DataFrame = None ,
5655 skip_ground_truth_processing : bool = False ) -> tuple :
5756
58-
5957 dataset_1 = dataset_1 .astype (str )
6058 dataset_2 = dataset_2 .astype (str )
6159
@@ -102,8 +100,7 @@ def load_content(self,
102100 self .ground_truth = ground_truth
103101 return dataset_1 , dataset_2 , ground_truth
104102
105-
106- def load_composite (
103+ def load_composite (self ,
107104 dataset_1 : DataFrame ,
108105 dataset_2 : DataFrame ,
109106 ground_truth : DataFrame = None ,
@@ -155,13 +152,13 @@ def load_composite(
155152 return dataset_1 , dataset_2 , ground_truth
156153
157154
158-
159- def load_schema (
155+ def load_schema (self ,
160156 dataset_1 : DataFrame ,
161157 dataset_2 : DataFrame ,
162158 ground_truth : DataFrame = None ,
163159 skip_ground_truth_processing : bool = False
164160 ) -> tuple :
161+
165162 dataset_1 = dataset_1 .astype (str )
166163 dataset_2 = dataset_2 .astype (str )
167164
0 commit comments