Q:

Column String Access for date using day

How do I access all the days of the 12 month in a dataset? 
The structure of data is:
print(df.head(n=1)) Date_Time IPAddress Visitors OS Browser \ 0 2016-10-18 12:57:45 104.236.233.18 1001 Mac OS Google Chrome Browser_Version Location Referrer PageID 0 39.0.2171.95 NaN creditcommerty.in index.php

Why do the vdf index values 6 and 2 in this code:
print(vdf['new_day'][6][2])

gives this error?
print(vdf['new_day'][6][2])
Traceback (most recent call last):
File "<ipython-input-196-c01f93f97338>", line 1, in <module>
print(vdf['new_day'][6][2])
KeyError: 6

A:

First you need to present us with the dataset or any appropriate reference. I have no clue as to what your data looks like, and I can only guess. All I can tell you is that 

The KeyError is thrown because there IS no 7th element in the "new_day" column.
To access every single data point in your dataframe, simply do vdf.iloc[:,:] or vdf[:][:], or df. Printing any three of these will return the same.

EDIT: From your comments, it seems like your new_day column has lists with three elements, where first is the year, second month, and third day. And you want to return all the days in like a list I assume?
vdf['new_day'][:][2] should give you a list of all the day elements.
>>> vdf = pd.DataFrame([
[[1,2,3]],
[[4,5,6]],
[[7,8,9]]
])

>> vdf
           0
0  [1, 2, 3]
1  [4, 5, 6]
2  [7, 8, 9]

>>> vdf[0][:][2]
[7, 8, 9]

Again, the KeyError: 6 is thrown because vdf['new_day'[6] is not there. Look at your data again. Do you have a 7th row?

