>>> import pandas as pd >>> from peaks import mount_range >>> dfpeaks = pd.read_csv('peaks.csv') >>> d1 = mount_range(dfpeaks) >>> type(d1) >>> d1.head() Height Ascents Failed attempts Range Annapurna Himalaya 8091 70 112 Assam Himalaya 7782 2 2 Baltoro Karakoram 8611 181 108 Batura Karakoram 7795 10 12 Daxue Shan 7556 6 7 >>> d1.loc['Annapurna Himalaya'][['Height', 'Ascents', 'Failed attempts']] Height 8091 Ascents 70 Failed attempts 112 Name: Annapurna Himalaya, dtype: int64 >>> d1['Ascents']['Batura Karakoram'] 10 >>> d1['Failed attempts']['Hindu Kush'] 22