J Test, Regression, Model Selection, Statistics, Deep Dives.
the following output: The first 30 rows of the World Bank data set (Image by Author) Create the dummy variables, one dummy per country: df_dummies = pd.get_dummies(df_panel[unit_col_name]) Join the dummies data frame with the rest of the data set: df_panel_with_dummies = df_panel.join(df_dummies)