Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
NumPy aggregate functions are easy! πŸ“Š
Play lesson

NumPy tutorial for beginners πŸ”’ - NumPy aggregate functions are easy! πŸ“Š

5.0 (0)
5 learners

What you'll learn

This course includes

  • 1.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#coding #python #numpy import numpy as np # Aggregate functions = summarize data and typically return a single value array = np.array([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]]) print(np.sum(array)) # Sum of all elements print(np.mean(array)) # Average of all elements print(np.std(array)) # Measure of spread print(np.var(array)) # Square of standard deviation print(np.min(array)) # Smallest value print(np.max(array)) # Largest value print(np.argmin(array)) # Position (flattened) of smallest print(np.argmax(array)) # Position (flattened) of largest print(np.sum(array, axis=0)) # sum column-wise (vertically) print(np.sum(array, axis=1)) # sum row-wise (horizontally)

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere