Is it possible to create a coefplot graph in python?
I have a regression model from the following code (whereas data is my data frame):
import statsmodels.formula.api as sm
df = pd.DataFrame({"A": data['percentWatched'], "B": data['agreement'], "C": data['credibility'], "D": data['trust'], "E": data['age'], "F": data['partIdeology7'], "G": data['vidLength'], "H": data['gender'], "I": data['agreeable'], "J": data['openness']})
result = sm.ols(formula="A ~ B + C + D + E + F + G + H + I + J", data=df).fit()
print(result.params)
print(result.summary())
I would love to chart the results on a coefplot, similar to something like this:
Is that possible in python?