cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

Modules

missyT
New Contributor III

Hello Python People.

Im still going through the motions learning python and have a general question.

example = Im creating basic ETL tasks to practice (SQL, SQLite, Excel etc)

I can see that to read excel I can use the pyodbc module - or can use Pandas , openpyxl

is it ok to just take pieces where needed that you prefer from other modules or would you aim to use as few modules as possible?

I suppose I'm not sure of the cost of importing modules

1 REPLY 1

-werners-
Esteemed Contributor III

do not reinvent the wheel. If what you need exists already, use it.

If you only use a few methods of a package you can consider not importing it completely.

The cost of importing is not huge, but that depends on the amount of imports and the size of the imported packages.