pythonjupyter-notebookquandl

import quandl data inquiry


Sorry noobie here, is there a reason why the row shown is only limited to 5? Thank you in advance

import pandas as pd
import quandl
df = pd.DataFrame(quandl.get('WIKI/TSLA'))
print(df.head())

enter image description here


Solution

  • by default head() method shows top 5 rows so if you want to see more rows,then pass the number of rows in n parameter of head() method

    i.e

    import pandas as pd
    import quandl
    df = pd.DataFrame(quandl.get('WIKI/TSLA')) 
    print(df.head(n=10))
    

    now it will show you top 10 rows