Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 150 - 2615_KEC
P. 150

    NUMPY-CREATION,                                                                        CHAPTER

                      SELECTION & OPERATION                                                                 B4

                         Learning Outcomes                                                                            95%

                         The student will be able to:
                            understand the concept of libraries in Python.
                            understand the concept of NumPy.

                                LIBRARIES

                      Libraries are collections of pre-written code that extend Python's core capabilities. They provide
                      specialised functions, classes and tools for solving specific problems in areas like data analysis,
                      web development, machine learning or scientific computing. Some common libraries are NumPy,

                      Pandas, SciPy, Matplotlib, etc.

                      The syntax to install library are:

                      pip install library_name

                      For example, to install the NumPy library, the syntax is:

                      pip install numpy

                      You can also install multiple libraries at once in Python,

                      pip install library_name 1 library_name 2 library_name 3

                      WHY DO WE NEED LIBRARIES?

                      Following points shows the need of libraries:

                         Avoid reinventing  the wheel: Instead  of writing  complex  code  from scratch, we can  use
                        well-tested, optimised libraries.

                      148   Premium Edition-VIII

| 145 146 147 148 149 150 151 152 153 154 155 |