Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import pandas as pd
- from pathlib import Path
- f = Path('C:/python/SUKKTN-PS.txt')
- d = pd.read_csv(f, sep=';', converters={'a': str})
- a = d.groupby('a')[['h', 'i', 'j', 'k']].sum()
- print(a.to_csv(sep=';'), end='')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement