You could get an idea of Azure Function Activity in ADF which allows you to run Azure Functions in a Data Factory pipeline.
And you could duplicate your python function into Python Azure Function.
Also,it want to pass parameters into python function,you could set them into body properties.

The Azure Function Activity supports routing. For example, if your app uses the following routing - https://functionAPP.azurewebsites.net/api/functionName/{value}?code=<secret>
- then the functionName is functionName/{value}
, which you can parameterize to provide the desired functionName
at runtime.