

# https://www.globalsino.com/ICs/page4853.html
# Count different numbers in each region

import pandas as pd

MyFileName = r'C:\GlobalSino\ICs\ExampleFiledUsedINtestingPython\CityDateB.csv'
df = pd.read_csv(MyFileName)

print(df)

print ('==== Different numbers in each region ==============')
count_by_region = df.groupby('Region')['Index'].nunique()

print(count_by_region)


