Reputation: 3
I have this data in excel:
I'd like to have it read in pandas dataframe like the following:
Upvotes: 0
Views: 64
Reputation: 150735
You can do:
df = pd.read_excel('file.xlsx')
df = pd.DataFrame(df['V1'].values.reshape(-1,2), columns=['V1','Value'])
Output:
V1 Value
0 A 2
1 b 4
2 c 8
Upvotes: 2