day 1# - Modules and pip in Python!
*MODULE-
Module is like a code library ,basically modules are used to borrow someone else's code
which means you can use someone else's code in your Program with the help of Modules.
The main module is the source file that runs first.
Benefit of Modules-
if your are use module it'll save your time and efforts and you and you can work on some big Project.
*There are Two Types-
*list of most popular python external modules
it can be used as a package manager pip to install a python modules. lets install a modules called Pandas using the following
USING A MADULE IN PYTHON (USAGE)
we can the important syntax to import a modules in python .
here is an example code:
import pandas
#read and work with file name 'word.csv'
df=pandas.read_csv('word.csv')
print(df)
# this will display first few rows from the word.csv file
Similarly we can install other modules and look into their documentations for usage instructions.
We will find ourselves doing this often in the later part of this course
Note down whatever was told to you today in Chapter 1 and keep practicing.
All the best to all the Future Programmer.
Thank you
Great
ReplyDeleteSir what is next topics
ReplyDeleteGreat bro
ReplyDeleteMake the date 17th May in your mind as my birthday
ReplyDelete