Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print dict(train.iloc[16])
- print dict(train.iloc[38])
- **************
- Nearest item
- 16 0.0 38
- {'City': '\xc4\xb0stanbul', 'revenue': 19696939.0, 'Type': 'FC', 'DaysOfRest': 5576, 'City Group': 'Big Cities', 'P10': 4, 'P11': 3, 'P12': 5, 'P13': 4.0, 'P14': 0, 'P15': 0, 'P16': 0, 'P17': 0, 'P18': 0, 'P19': 1, 'P30': 0, 'P31': 0, 'P36': 0, 'P37': 0, 'P34': 0, 'P35': 0, 'P2': 5.0, 'P3': 4.0, 'P1': 3, 'P6': 5, 'P7': 5, 'P4': 4.0, 'P5': 2, 'P8': 4, 'P9': 5, 'P32': 0, 'P33': 0, 'max_params': 5.0, 'P25': 0, 'P24': 0, 'P27': 0.0, 'P26': 0.0, 'P21': 1, 'P20': 4, 'P23': 1, 'P22': 1, 'P29': 2.0, 'P28': 2.0}
- {'City': '\xc4\xb0stanbul', 'revenue': 5461700.0, 'Type': 'FC', 'DaysOfRest': 1547, 'City Group': 'Big Cities', 'P10': 4, 'P11': 3, 'P12': 5, 'P13': 4.0, 'P14': 0, 'P15': 0, 'P16': 0, 'P17': 0, 'P18': 0, 'P19': 1, 'P30': 0, 'P31': 0, 'P36': 0, 'P37': 0, 'P34': 0, 'P35': 0, 'P2': 5.0, 'P3': 4.0, 'P1': 3, 'P6': 5, 'P7': 5, 'P4': 4.0, 'P5': 2, 'P8': 4, 'P9': 5, 'P32': 0, 'P33': 0, 'max_params': 5.0, 'P25': 0, 'P24': 0, 'P27': 0.0, 'P26': 0.0, 'P21': 1, 'P20': 4, 'P23': 1, 'P22': 1, 'P29': 2.0, 'P28': 2.0}
- **************
- Second Nearest item
- 16 1.0 85
- {'City': '\xc4\xb0stanbul', 'revenue': 7495092.0, 'Type': 'FC', 'DaysOfRest': 5576, 'City Group': 'Big Cities', 'P10': 4, 'P11': 3, 'P12': 5, 'P13': 4.0, 'P14': 0, 'P15': 0, 'P16': 0, 'P17': 0, 'P18': 0, 'P19': 1, 'P30': 0, 'P31': 0, 'P36': 0, 'P37': 0, 'P34': 0, 'P35': 0, 'P2': 5.0, 'P3': 4.0, 'P1': 3, 'P6': 5, 'P7': 5, 'P4': 4.0, 'P5': 2, 'P8': 4, 'P9': 5, 'P32': 0, 'P33': 0, 'max_params': 5.0, 'P25': 0, 'P24': 0, 'P27': 0.0, 'P26': 0.0, 'P21': 1, 'P20': 4, 'P23': 1, 'P22': 1, 'P29': 3.0, 'P28': 2.0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement