I'm using Pandas (and programming in general) for the first time and I could really use some help. From the data, I managed to create a variable x of type pandas.core.series.Series using value_counts that looks like this:
week
0 SanDOW 20
SanPCF 18
SanSOT 10
SanMSS 7
SanPEN 2
...
52 SanCOL 2
SanOCN 2
SanSOT 2
SanKER 1
SanLAJ 1
SanRNC 1
SanCAR 1
53 SanDOW 1
Length: 1954, dtype: int64
Can you please assist/orient/help me in creating a dataframe that has the week (index) as columns? That way I can have a table that looks like this
0 1 2 3 ... 53
SanDOW
SanPCF
SanXXX
.
.
.
And the appropriate values for each city by week?
Apologies in advance if I'm not following proper etiquette when asking this question.