Modules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2021 11:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2021 01:16 AM
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.

