text_plain_output_1.png
import pandas as pd

import numpy as np
import pandas as pd
pd.set_option('display.max_columns', 50)
import os
from scipy import stats
import matplotlib.pyplot as plt
import seaborn as sns

TRAIN_PATH = '/kaggle/input/hr-analytics-job-change-of-data-scientists/aug_train.csv'
TEST_PATH = '/kaggle/input/hr-analytics-job-change-of-data-scientists/aug_test.csv'

df = pd.read_csv(TRAIN_PATH)

city_with_dev = df.groupby(['city']).mean()['city_development_index'].reset_index()
city_with_dev = city_with_dev.sort_values(by=['city_development_index'], ascending=False).reset_index(drop=True)
city_with_dev.head()