Ravindra BagaleCourses & study guides

5. pandas DataFrames and Series

5.4 Columns as Series — Quick Stats

print(df["amount"].sum())
print(df["status"].value_counts())
print(df["city"].nunique())

Worked example. Shraddha Bagale loads the sample and runs value_counts() on status — she sees Delivered 2, Cancelled 1 before any chart.

Thodkyaat sangaycha tar (quick recap)

  • DataFrame = table; Series = one column
  • Always head + info + dtypes on a new file
  • read_csv / to_csv for the lab loop

Samajla ka? Aata pudhe jaauya selecting, filtering and sorting.