Top-rated recipes tagged "lookup"http://code.activestate.com/recipes/tags/lookup/top/2012-03-02T12:45:29-08:00ActiveState Code RecipesOrdered CSV read / write with colum based lookup (Python) 2011-12-24T19:44:13-08:00__nerohttp://code.activestate.com/recipes/users/4177968/http://code.activestate.com/recipes/577996-ordered-csv-read-write-with-colum-based-lookup/ <p style="color: grey"> Python recipe 577996 by <a href="/recipes/users/4177968/">__nero</a> (<a href="/recipes/tags/csv/">csv</a>, <a href="/recipes/tags/lookup/">lookup</a>). </p> <p>This allows you to hold on to your csv in a dict form, do lookups and modifications, and also write it in a preserved order. You can also change which column you want to be your lookup column (making sure that there is a unique id for every row of that column. In my example of usage, it assumes that both classes are contained withing the same file named 'CustomDictReader.py'</p> Ordered CSV read / write with colum based lookup (Python) 2012-03-02T12:45:29-08:00Gregory Nicholashttp://code.activestate.com/recipes/users/4180332/http://code.activestate.com/recipes/578059-ordered-csv-read-write-with-colum-based-lookup/ <p style="color: grey"> Python recipe 578059 by <a href="/recipes/users/4180332/">Gregory Nicholas</a> (<a href="/recipes/tags/csv/">csv</a>, <a href="/recipes/tags/lookup/">lookup</a>). </p> <p>This allows you to hold on to your csv in a dict form, do lookups and modifications, and also write it in a preserved order. You can also change which column you want to be your lookup column (making sure that there is a unique id for every row of that column. In my example of usage, it assumes that both classes are contained withing the same file named 'CustomDictReader.py'</p>