Jan-09-2017, 08:03 AM
Here is my code:
import pandas as pd
web_stats={'Day':[1,2,3,4,5,6],
'Visitor':[43,34,65,56,29,76],
'Bounce Rate':[65,67,78,65,45,52]}
df=pd.DataFrame(web_stats)
print(df.head())
--------------
Output is:
Bounce Rate Day Visitor
0 65 1 43
1 67 2 34
2 78 3 65
3 65 4 56
4 45 5 29
-------------------
My question is: Shouldn't it print column of Day and Visitor before Bounce Rate?
L
import pandas as pd
web_stats={'Day':[1,2,3,4,5,6],
'Visitor':[43,34,65,56,29,76],
'Bounce Rate':[65,67,78,65,45,52]}
df=pd.DataFrame(web_stats)
print(df.head())
--------------
Output is:
Bounce Rate Day Visitor
0 65 1 43
1 67 2 34
2 78 3 65
3 65 4 56
4 45 5 29
-------------------
My question is: Shouldn't it print column of Day and Visitor before Bounce Rate?
L