Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import matplotlib.pyplot as plt
- auto = pd.read_csv('/datasets/auto.csv')
- auto['total'] = auto['october'] + auto['november'] + auto['december']
- total_segments = auto['total'].sum() + 53148 + 44067
- premium = 53148 / total_segments
- bus = 44067 / total_segments
- medium = auto['total'].sum() / total_segments
- data = pd.Series({'Премиум': premium, 'Грузовики и др.': bus, 'Медиум':medium})
- data.plot(kind='bar')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement