Search⌘ K

Using Libraries

Explore how Python libraries, collections of reusable modules, simplify coding by providing tested functions. Understand how to create your own library, import modules efficiently, and manage code readability and performance by selectively importing functions.

A library in Python is essentially a collection of modules, which are files containing Python code. Libraries save time and effort by letting programmers use pre-built functions. An added benefit is that as more and more people use a library, code gets tested, due to which bugs can be fixed and code can be optimized.

Python has a vibrant ecosystem of libraries covering diverse domains. While a detailed discussion on Python's ecosystem is beyond the scope of this course, some of the popular libraries are listed below to give a taste of what you can expect in your exciting Python journey.

  • Data science: NumPy, pandas

  • Data visualization: Matplotlib, Seaborn, Plotly

  • Machine learning and image processing: scikit-learn, TensorFlow, ...