Aug-11-2018, 04:34 PM
(This post was last modified: Aug-11-2018, 04:34 PM by sweet_swiss.)
I had just started with notebooks and Python. When I print my list will I just the list and then number how often they occur.
I would like to if I could get hour as a header and count as a header ,see pic
![[Image: Screen_Shot_2018_08_11_at_18_29_44.png]](https://image.ibb.co/eEMEqp/Screen_Shot_2018_08_11_at_18_29_44.png)
For the moment am I getting this below my results Name: hour, dtype: int64
/Maria
I would like to if I could get hour as a header and count as a header ,see pic
df = pd.read_csv('/Users/maria/Desktop/data.log', names=[0, 'hour', 2, 3], sep=':', engine='python') x=df['hour'].value_counts() print(x[0:2])
![[Image: Screen_Shot_2018_08_11_at_18_29_44.png]](https://image.ibb.co/eEMEqp/Screen_Shot_2018_08_11_at_18_29_44.png)
For the moment am I getting this below my results Name: hour, dtype: int64
/Maria