python Programming Glossary: xyz123
repeat data in the empty lines untill a non-empty line occurs http://stackoverflow.com/questions/10722833/repeat-data-in-the-empty-lines-untill-a-non-empty-line-occurs empty line occurs I have a data file that looks like this xyz123 2.000 0.3974 0.0 hij123 6.0 lmn123 8.7 efg123 13.9.. 28.5 rst123 abc123 10.000 0.1943 0.0 wxy123 10.7 xyz123 19.9 pqr123 20.6 stu123 20.6 klm123 def123 50.000 0.2595.. 27.1 ghi123 27.6 abc123 I need to transform it into xyz123 2.000 0.3974 0.0 hij123 xyz123 2.000 0.3974 6.0 lmn123 xyz123..
|