Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
I often work with tables that are right aligned and space delimited. This means that the spaces in front of the first column varies from 0 to N. In this screenshot, this transition happens from 999 to 1000. I would like pandas to figure out that the first non-space values in each row all belong to the same column. Using skipinitialspace=True does not work (since some rows have no space at all), and so some of the values get pushed into the wrong column!
I often work with tables that are right aligned and space delimited. This means that the spaces in front of the first column varies from 0 to N. In this screenshot, this transition happens from 999 to 1000. I would like pandas to figure out that the first non-space values in each row all belong to the same column. Using skipinitialspace=True does not work (since some rows have no space at all), and so some of the values get pushed into the wrong column!