Posts by LucasMassucci • 1 point
1 post
-
0
votes3
answers2778
viewsA: Separate data from a txt file
import pandas as pd df = pd.read_fwf('stack.txt', widths=[17,12,9,2,2,4,2,2], header=None, index_col=None) df.to_csv('stack2.csv', index = False, header=False) …