I am trying to extract a index [1] or month from series but not getting it. Its series from a DataFrame.
x = ltest['Date'].str.split("-")
5659 [2015, 07, 26]
5696 [2015, 07, 26]
5783 [2015, 07, 26]
5833 [2015, 07, 26]
5836 [2015, 07, 26]
dtype: object
x[1] #error
x[x[1]] #error
ltest
Store DayOfWeek Date Sales Customers Open Promo StateHoliday SchoolHoliday
5659 85 7 2015-07-26 11421 1606 1 0 0 0
5696 122 7 2015-07-26 5773 707 1 0 0 0
5783 209 7 2015-07-26 3742 354 1 0 0 0
5833 259 7 2015-07-26 15998 2857 1 0 0 0
5836 262 7 2015-07-26 32547 4783 1 0 0 0
I am learning pandas. I checked api documentation but weren't able to figure out.