groupbyhead: Group a list of items according to the starting character(s) of items

Category: Python - Miscellaneous

Group a list of items according to the starting character(s) of items.
This is based on Raymond Hettinger's groupby class:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259173 Date: 05 January, 2012


Algorithms

Homepage: http://code.activestate.com/recipes/465830-groupbyhead-group-a-list-of-items-according-to-the/?in=lang-python

Developer: runsun pan

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

CPU scheduling algorithms simulates the scheduling of a CPU, calculate waiting time & average, turnaround time,etc.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


This code is a representation of the First In First Out Algorithm in Page Replacement Algorithms.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


This script implements the three standard relational join algorithms: nested loops join, hash join, and merge join, using the iterator algebra support in Python.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This code contains all the common sorting/searching algorithms, all with comments.

developer Developer: planet-source-code.com
license License: Freeware
operating systems Operating System: All


This script demonstrates a 2D boids simulation.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script presents two approaches to generate all combination of elements from a number of sets.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


The List monad in Haskell has many uses, including parsing and nondeterministic algorithms.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script uses the csv module to convert gmail.

developer Developer: Scott Tsai
license License: Python License
operating systems Operating System: Windows


Injecting _() in the __builtin__ module in order to inject global functions _() and N_() is common in applications which need i18n.

developer Developer: Martin Blais
license License: Python License
operating systems Operating System: Windows