What would be the best way to create pandas DataFrame with index from records. Here is my sample:
sales = [('Jones LLC', 150, 200, 50),
('Alpha Co', 200, 210, 90),
('Blue Inc', 140, 215, 95)]
labels = ['account', 'Jan', 'Feb', 'Mar']
df = pd.DataFrame.from_records(sales, columns=labels)
I need 'Account' to be an index here (not a column) Thanks