Hi!
I am inferring the causal effect of weather on store sales.
My data frame consists of all float variables (temperature, pressure, sales quantity, week of the year etc..)

I am using the df.causal.api method with the following parameters:
weSalesDf_api.causal.do(x=x1,outcome='q',dot_graph=str(wSgfs.source.replace("\n"," ")),proceed_when_unidentifiable=True,variable_types=x1_type)
where:
x1={'t':-3,'d':3,'g':980,'h':90,'r':2,'n':1,'i':4,'w':13} x1_type={'t':'c','d':'c','g':'c','h':'c','r':'c','n':'c','i':'c','w':'c','q':'c'}
'q' is the outcome
dot_graph is:

I am getting the following error:
IndexError: arrays used as indices must be of integer (or boolean) type

When i use the 4 step approach the same data frame works fine.
Please can you help me resolve this issue? My primary objective is to estimate the outcome when I specify values for the causal variables.
Hi!
I am inferring the causal effect of weather on store sales.
My data frame consists of all float variables (temperature, pressure, sales quantity, week of the year etc..)

I am using the df.causal.api method with the following parameters:
weSalesDf_api.causal.do(x=x1,outcome='q',dot_graph=str(wSgfs.source.replace("\n"," ")),proceed_when_unidentifiable=True,variable_types=x1_type)where:

x1={'t':-3,'d':3,'g':980,'h':90,'r':2,'n':1,'i':4,'w':13} x1_type={'t':'c','d':'c','g':'c','h':'c','r':'c','n':'c','i':'c','w':'c','q':'c'}'q' is the outcome
dot_graph is:
I am getting the following error:
IndexError: arrays used as indices must be of integer (or boolean) type
When i use the 4 step approach the same data frame works fine.
Please can you help me resolve this issue? My primary objective is to estimate the outcome when I specify values for the causal variables.