Tabular data structure conversion in Python
Please see my updated post at:
/blog/2007/12/tabular-data-structure-conversion-in-python/
You should be redirected in 2 seconds.
The table below lists all the conversions available between the 8 types of tabular data structures. The function names link to the function definition below.
| TO | |||||||||
| lorl list of lists where each inner list is a row |
locl list of lists where each inner list is a column |
lord list of dicts where each dict is a row |
locd list of dicts where each dict is a column |
dorl dict of lists where each list is a row |
docl dict of lists where each list is a column |
dord dict of lists where each inner dict is a row |
docd dict of lists where each inner dict is a column |
||
| F R O M |
lorl list of lists where each inner list is a row |
lorl2 |
lorl2 |
lorl2 |
lorl2 |
lorl2 |
lorl2 |
lorl2 |
|
| locl list of lists where each inner list is a column |
locl2 |
locl2 |
locl2 |
locl2 |
locl2 |
locl2 |
locl2 |
||
| lord list of dicts where each dict is a row |
lord2 |
lord2 |
lord2 |
lord2 |
lord2 |
lord2 |
lord2 |
||
| locd list of dicts where each dict is a column |
locd2 |
locd2 |
locd2 |
locd2 |
locd2 |
locd2 |
locd2 |
||
| dorl dict of lists where each list is a row |
dorl2 |
dorl2 |
dorl2 |
dorl2 |
dorl2 |
dorl2 |
dorl2 |
||
| docl dict of lists where each list is a column |
docl2 |
docl2 |
docl2 |
docl2 |
docl2 |
docl2 |
docl2 |
||
| dord dict of dicts where each inner dict is a row |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
||
| docd dict of dicts where each inner dict is a column |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
dord2 |
||
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(5)
-
aws
(9)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(13)
-
conkeror
(2)
-
core
(2)
-
cygwin
(17)
-
datastructures
(14)
-
datetime
(4)
-
decorators
(4)
-
django
(40)
-
emacs
(22)
-
files_directories
(11)
-
git
(5)
-
hardware
(5)
-
install_setup
(8)
-
javascript
(3)
-
keyboard
(9)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
persistence
(5)
-
preferences
(7)
-
processes
(4)
-
pyqt
(18)
-
python
(144)
-
ratpoison
(3)
-
regexes
(6)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(14)
-
ssh
(10)
-
subversion
(6)
-
twisted
(7)
-
ubuntu
(65)
-
urxvt
(5)
-
vxworks
(25)
-
webdev
(5)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Marty Alchin
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan