Skip to main content

ser.count()

ser.count()

Returns the number of non-NA/null observations in the Series. Essentially the length of a Series, assuming that every row has an observation.


weight_ser = pets.get('Weight')
weight_ser
  • 040
  • 11.5
  • 215
  • 380
  • 425
  • 51
  • 60.25
  • 710
weight_ser.count()

8