Challenge Solution Review
In this lesson, we explain the solution to the last challenge lesson.
import pandas as pddf = pd.read_csv("raw_data.csv",sep=",",header=0)item_uniq = len(df["Item ID"].unique())total_price = df["Price"].sum()mean_price = df["Price"].mean()purchase_cnt = df["Price"].count()print(item_uniq, total_price, mean_price, purchase_cnt)
Get hands-on with 1400+ tech skills courses.