filmov
tv
Modules and Packages | Import Statements | What are modules? | Python for Data Science

Показать описание
I explain about what are modules and packages and how we can organize code in them. I also show different import statements to import from modules and packages. If you like our content, click on *SUBSCRIBE* button and click on Bell icon to receive latest and greatest updates of my video lessons.
This video starts with the explanation of what are modules. Then I show a very simple demo module code with only couple of functions defined in them. Then, practically I move to how we can import those functions into our code. I show three varieties of import statement.
I also explore one of the built-in modules in Python. Math module provides various functions for working with numbers and we looked at couple of functions in that.
Finally, I explain about packages and how we can create our own custom packages for organizing our code. I also show the import statements to import items from nested package and module structure. We could also create an alias to avoid name conflicts while importing specific function or class from a module or package.
What are Modules in Python [0:28]
Import from modules [2:01]
Creating alias while importing [3:07]
Why we should avoid [4:36]
math module in Python [6:56]
What is Package in Python? [9:11]
Follow us on Facebook, Twitter, Instagram
This video starts with the explanation of what are modules. Then I show a very simple demo module code with only couple of functions defined in them. Then, practically I move to how we can import those functions into our code. I show three varieties of import statement.
I also explore one of the built-in modules in Python. Math module provides various functions for working with numbers and we looked at couple of functions in that.
Finally, I explain about packages and how we can create our own custom packages for organizing our code. I also show the import statements to import items from nested package and module structure. We could also create an alias to avoid name conflicts while importing specific function or class from a module or package.
What are Modules in Python [0:28]
Import from modules [2:01]
Creating alias while importing [3:07]
Why we should avoid [4:36]
math module in Python [6:56]
What is Package in Python? [9:11]
Follow us on Facebook, Twitter, Instagram