Module is like a code library which can be used to borrow code written by somebody else in our python program. There are two types of modules in python:
It can be used as a package manager pip to install a python module.
Lets install a module called pandas using the following command
pip install pandas
We use the import syntax to import a module in Python. Here is an example code:
import pandas
# Read and work with a file named 'words.csv'
df = pandas.read_csv('words.csv')
print(df) # This will display first few rows from the words.csv file
Similarly we can install other modules and look into their documentations for usage instructions.
We will find ourselved doing this often in the later part of this course