text_html_output_1.png application_vnd.jupyter.stderr_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

data = pd.read_csv('../input/argentina.csv')

data.NUMBER = data.NUMBER.astype(str)
data.NUMBER = data.NUMBER.str.strip(' ')

data['DIGITO'] = data.NUMBER.map(lambda x: x[0])

index_drop = data[data.DIGITO == '0'].index.values
index_drop
data.drop(index_drop, axis=0, inplace=True)

for num in [str(x) for x in range(10)]:
    print(num, data[data['DIGITO'] == num].shape[0], data[data['DIGITO'] == num].shape[0] / data.shape[0])