Python Forum

Full Version: code question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I run following code, why df.head() did not print the top record of df?
Thanks,
Jeff
import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objs as go



df = pd.read_csv(
    'https://gist.githubusercontent.com/chriddyp/' +
    '5d1ea79569ed194d432e56108a04d188/raw/' +
    'a9f9e8076b837d541398e999dcbac2b2826a81f8/'+
    'gdp-life-exp-2007.csv')
df.head()
if you want to print it, then use print(df.head())