Follow me
-
Recent Posts
calendar
Recent Comments
- Stan on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- Cormac on Pandas : how to compare dataframe with None
- LP on AWK: the substr command to select a substring
- jrab on python argparse issues with the help argument (TypeError: %o format: a number is required, not dict)
- How to disable SSL verification for urlretrieve? – Peter's blog on python: certificate verified failed
Archives
Categories
Meta
Daily Archives: November 7, 2011
python: how to flatten a nested list
Simple nested list of strings Suppose that you have a simple nested list. Simple in the sense that there is only one level: data = [[’a’,’b’], [’c’], [’d’]]data = [[‘a’,’b’], [‘c’], [‘d’]] you can use the operator module and reduce … Continue reading