Last active
December 25, 2018 03:25
-
-
Save glamp/5074027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
train_cols = data.columns[1:] | |
# Index([gre, gpa, prestige_2, prestige_3, prestige_4], dtype=object) | |
logit = sm.Logit(data['admit'], data[train_cols]) | |
# fit the model | |
result = logit.fit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah!!!
use
import statsmodels as sm
instead of
import statsmodels.api as sm