Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- date phone sensor pallet
- 126 2019-04-15 940203 C0382C391A4D 47
- 127 2019-04-15 940203 C0382D392A4D 47
- 133 2019-04-16 940203 C0382C391A4D 47
- 134 2019-04-16 940203 C0382D392A4D 47
- 138 2019-04-17 940203 C0382C391A4D 47
- 139 2019-04-17 940203 C0382D392A4D 47
- 144 2019-04-18 940203 C0382C391A4D 47
- 145 2019-04-18 940203 C0382D392A4D 47
- 156 2019-04-19 940203 C0382D392A4D 47
- 157 2019-04-19 940203 C0382C391A4D 47
- 277 2019-04-15 941557 C0392D362735 32
- 279 2019-04-15 941557 C03633364D50 32
- 286 2019-04-16 941557 C03633364D50 32
- 287 2019-04-16 941557 C0392D362735 32
- 296 2019-04-17 941557 C03633364D50 32
- 297 2019-04-17 941557 C0392D362735 32
- 305 2019-04-18 941557 C0392D362735 32
- 306 2019-04-18 941557 C03633364D50 32
- 317 2019-04-19 941557 C03633364D50 32
- 318 2019-04-19 941557 C0392D362735 32
- 561 2019-04-15 942316 C0384639224D 45
- 562 2019-04-15 942316 C03632364950 45
- 563 2019-04-15 942316 C03920363835 45
- 564 2019-04-15 942316 C0382939384D 45
- 573 2019-04-16 942316 C0382939384D 45
- 574 2019-04-16 942316 C0384639224D 45
- 575 2019-04-16 942316 C03632364950 45
- grouped = pallets_arrived.groupby('pallet')
- nrows = 2
- ncols = 2
- fig, axs = plt.subplots(nrows, ncols)
- targets = zip(grouped.groups.keys(), axs.flatten())
- for i, (key, ax) in enumerate(targets):
- ax.plot_date(grouped.get_group(key)['date'], grouped.get_group(key)['sensor'], 'o')
- plt.show()
- return pallets_arrived
- grouped = pallets_arrived.groupby('pallet')
- nrows = 2
- ncols = 2
- fig, axs = plt.subplots(nrows, ncols)
- targets = zip(grouped.groups.keys(), axs.flatten())
- for i, (key, ax) in enumerate(targets):
- grouped.get_group(key).plot(x='date', y='sensor', ax=ax)
- ax.legend()
- plt.show()
- grouped = pallets_arrived.set_index('date').groupby('pallet')
- nrows = 2
- ncols = 2
- fig, axs = plt.subplots(nrows, ncols)
- targets = zip(grouped.groups.keys(), axs.flatten())
- for i, (key, ax) in enumerate(targets):
- grouped.get_group(key).plot(grouped.get_group(key).index, y='sensor', ax=ax)
- ax.legend()
- plt.show()
- grouped = pallets_arrived.groupby('pallet')
- nrows = 2
- ncols = 2
- fig, axs = plt.subplots(nrows, ncols)
- targets = zip(grouped.groups.keys(), axs.flatten())
- for i, (key, ax) in enumerate(targets):
- plt.sca(ax)
- plt.plot(grouped.get_group(key)['date'], grouped.get_group(key)['sensor'])
- ax.legend()
- plt.show()
- fig, ax = plt.subplots()
- ax.scatter(df['date'], df['sensor'])
- plt.show()
- fig, ax = plt.subplots()
- for _,g in df.groupby('pallet'):
- ax.scatter(g['date'], g['sensor'])
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement