SIENTIAPDE-1171
Enhance data merging in MLFlowRepository by specifying the 'on' parameter for improved join accuracy. This change ensures that the merge operation correctly aligns data based on the 'id' field.
This commit is contained in:
@@ -138,6 +138,7 @@ class MLFlowRepository():
|
|||||||
treated_data, y,
|
treated_data, y,
|
||||||
left_index=True,
|
left_index=True,
|
||||||
right_index=True,
|
right_index=True,
|
||||||
|
on='id',
|
||||||
how='left', # or 'inner', depending on your needs
|
how='left', # or 'inner', depending on your needs
|
||||||
validate='one_to_one' # ensures each index appears only once in both
|
validate='one_to_one' # ensures each index appears only once in both
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user