Essential Python List Operations and Their Correct Usage
Quick reference
Operation
Purpose
sort(), sorted()
Order elements
[::-1], reverse()
Reverse order
[:], copy(), list(), deepcopy()
Dulpicate data
index()
Locate first occurrence
len()
Count elements
count()
Frequency of value
str.join()
Concatenate to string
in / not in
Membership test
==, !=, <, >
Lexicographic comp ...
Posted on Thu, 17 Sep 2026 16:42:49 +0000 by pod2oo5
MapReduce Global Sort Example with IntWritable Keys
MapReduce performs an implicit distributed sort before data reaches each reducer. The following walk-through shows how to exploit this feature to globally order a dataset by an integer column.
Shuffle & Sort Internals
The framework guarantees that every reducer receives its partition already sorted by key. The steps below highlight the crit ...
Posted on Mon, 31 Aug 2026 16:00:00 +0000 by corillo181
Core Functional and Utility Functions in Python
Core Functional and Utility Functions in Python
Python provides a suite of built-in functions that are essential for functional programming, data transformation, and common operations. This article covers several key functions and their practical applications.
The filter() Function
The filter() function constructs an iterator from elements of a ...
Posted on Sat, 22 Aug 2026 16:33:27 +0000 by magic-eyes
Python Sorting Techniques: sort() vs sorted()
In Python, there are two methods for sorting: the built-in sort() method for lists and the global sorted() fnuction.
Key differences:
The sort() method modifies the original list and does not return a new list. It is limited to sorting lists.
The sorted() function returns a new list, leaving the original unchanged. It can be used with any iter ...
Posted on Fri, 17 Jul 2026 17:12:08 +0000 by daveoliveruk