I would like to call a python function through a c++ script. I know how to call a c++ function in a python code but no the other way. for example, I would like to use the return value of this python function in a c++ script like this:
import pandas as pd
def concat(x1,x2):
a = pd.DataFrame(pd.concat([pd.DataFrame(x1), pd.DataFrame(x2)], axis=1))
return a
#
void Foot::update(){
ccerr << "Merge " << PLate->me->vertIncl << endl;
con[a] = concat(model->getA(),model->getB())}
Is it possible?