index = ['Apple', 'Google', 'Facebook', 'Microsoft', 'Amazon'] age = [46, 24, 18, 47, 28] market_cap = [2.42, 1.29, 0.377, 1.77, 1.16] df = pd.DataFrame({'age': age, 'market_cap': market_cap}, index=index)
Hosted onDeepnote