Jul-22-2019, 07:54 AM
import pandas as pd diSales= { 2016:{'qtr1':34500,'qtr2':56000,'qtr3':47000,'qtr4':49000}, 2017:{'qtr1':44900,'qtr2':46100,'qtr3':57000,'qtr4':59000}, 2018:{'qtr1':54500,'qtr2':51000,'qtr3':57000,'qtr4':58500}, 2019:{'qtr1':61000} } df = pd.DataFrame(diSales) ks = df.count() print(ks)in above example i am using name df, ks but what exact term i will use for that: variable or object ?
are df and ks variables or anything ? plz clarify me