Sai

Manipulating Collections Using Loops

Manipulating Collections using Loops¶ Let us understand how to manipulate collections using loops. We will be performing quite a lot of tasks to get enough programming practice. Reading files into collections Overview of Standard Transformations Row level transformations Getting unique elements Filtering Data Preparing Data Sets Quick Recap of Dict Operations Performing Total Aggregations Performing …

Manipulating Collections Using Loops Read More »

Sorting Dictionary Items

Sorting dict items¶ Let us understand how we can sort the dict items in Python. dict is nothing but group of key value pairs where keys are unique. sorted on dict returns only sorted keys. In [7]: famous_players = { ‘Pete Sampras’: ‘Tennis’, ‘Sachin Tendulkar’: ‘Cricket’, ‘Brian Lara’: ‘Cricket’, ‘Diego Maradona’: ‘Soccer’, ‘Roger Federer’: ‘Tennis’, ‘Ian …

Sorting Dictionary Items Read More »