¡@

Home 

python Programming Glossary: sample.txt

Handling large inputs in python

http://stackoverflow.com/questions/10321334/handling-large-inputs-in-python

with 2 and 3 I get ~ coding time python2.6 enormread.py sample.txt 0 real 0m3.971s user 0m3.712s sys 0m0.256s ~ coding time python2.7.. 0m3.712s sys 0m0.256s ~ coding time python2.7 enormread.py sample.txt 0 real 0m2.637s user 0m2.428s sys 0m0.204s ~ coding time python3.2.. 0m2.428s sys 0m0.204s ~ coding time python3.2 enormread.py sample.txt 0 real 0m10.412s user 0m10.065s sys 0m0.344s ~ coding time ~..

can pandas handle variable-length whitespace as column delimeters

http://stackoverflow.com/questions/12021730/can-pandas-handle-variable-length-whitespace-as-column-delimeters

but I couldn't get this to work. ## sample data head sample.txt # full sequence this domain hmm coord ali coord env coord.. #load data from pandas import data read_table 'sample.txt' skiprows 3 header None sep ValueError Expecting 83 columns.. columns got 91 in row 4 #load data part 2 data read_table 'sample.txt' skiprows 3 header None sep 's ' #this mushes some of the columns..