Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STATION DATE ELEM VALUE
- 0 US1MNCV0008 20170101 PRCP 0
- 1 US1MNCV0008 20170101 SNOW 0
- 2 US1MISW0005 20170101 PRCP 0
- 3 US1MISW0005 20170101 SNOW 0
- 4 US1MISW0005 20170101 SNWD 0
- STATION DATE ELEM VALUE ELEM VALUE ELEM VALUE
- 0 US1MNCV0008 20170101 PRCP 0 SNOW 0
- 1 US1MISW0005 20170101 PRCP 0 SNOW 0 SNWD 0
- weather.groupby(['station', as_index=False).agg(lambda x: x.tolist())
Add Comment
Please, Sign In to add comment