Anyone familiar with the pandas_ta library? I use the following code to get ichimoku values:
ichi = ta.ichimoku(df['high'], df['low'], df['close'], include_chikou=True)
Ichi type should be data frame but the output is a 2-member tuple. Does anyone know where the problem comes from?
Since a tuple is returned, you can use this code
For example,
df_ichi[1]["spanA_future"]
- we move the data from tuple [1] to the Pandas dataframe columndf["spanA_future"]