I have run ANOVA analysis using statsmodel library as following:
import numpy as np
import pandas as pd
from scipy import stats
from scipy.stats import norm
from scipy.signal import savgol_filter
from matplotlib import rcParams
import scipy.stats as stats
#ANOVA ONE WAY
mc = MultiComparison(df['NDVI'], df['line'])
mc_resultsNDVI = mc.tukeyhsd()
print(mc_resultsNDVI)
The problem: I would like to get the result as pandas dataframe. Now, when I print the result (and I have run this test for few columns) I get something that looks like this:
I would like it to be pandas dataframe