I am passing dataframe to class method and when I run py file its working fine.But when I call that method in robot I am getting error as "string indices must be integers". below is the code for ref.
python file(Dummy.py)
class Dummy:
def case1(self,df1,df2):
#operation
#reading file and creating dataframe here
obj=Dummy()
obj.case1(df1,df2)
robot file
*** Settings ***
Library Dummy.py
*** Test Cases ***
Example
${result}= Dummy.case1 df1 df2
You can pass dataframe as you would any other variable. There is no need to treat it any different. Important question here is how did you create it? Was it realy a dataframe?
below example should work:
.py
robot