Используйте dict.get() вместо dict[]
Есть несколько способов получения значений из словарей, и даже по такой теме разработчики часто спорят.
Многие получают значения по ключам через квадратные скобки, но если такого ключа нет, то будет вызвано исключение.
Поэтому мы считаем, что лучше использовать метод get у словарей. Его основной плюс заключается в том, что он принимает опциональный аргумент, отвечающий за значение по умолчанию.
Таким образом, если значение по ключу не найдено, то вернется дефолтное значение.
В итоге, мы убираем возможные ошибки в случае, если нужных ключей в словаре нет.
#python#dict
#vacancy#вакансия#python#data engineer #remote
Компания Swift Invention ищет разработчиков:
https://www.swiftinvention.com/#/
Data Engineer (Python)
Full-time
Remote
4000-5000USD
Required skills:
- 3+ years of work experience in developing data-related solutions
- Strong background in Python for data collecting and analysis
- Experience with building and maintaining web scrapers (data mining)
- Experience with preparing data for machine learning (ETL)
- Experience with relational databases (SQLite/MySQL/PostgreSQL)
- Bachelor’s degree or higher in computer science or a related field
Desired skills:
- Understanding of data modeling concepts
- Experience with creating ML data for text classification
- Experience with cloud computing platforms (e.g., AWS, Azure, GCP)
We offer:
- Paid time off (24 working days per year)
- Equipment: MacBook Pro or Dell laptop (m1, m2, i7, 16/32GB RAM)
- Flexible working hours
About the project:
Pakira is a SaaS industry directory, chat, forum, and order tracking for businesses in the wholesale wood industry.
Contacts: [email protected]
tg @HelenSwiftInv
🔥 Learn Python for Data Analysis: Easy Self-Study Roadmap
I made 2 diagrams☝️to help beginners who want to learn Python for data analysis on their own.
_____________________________________
#DataAnalyst#DataAnalytics#DataAnalysis#data_analyst#python
If you like this type of content, hit 🔥.
Give a FREE BOOST to My Channel https://t.me/boost/thinkbroadly
#教程 「Building a web scraping tool with Python」
6月发出第一篇的信息爬取系列教程终于在八月完结,其中第一篇讲如何用 #Python 解析 #XML 格式的 RSS feed。总共有三篇:
1️⃣Building an RSS feed scraper with Python
2️⃣Automated web scraping with Python and Celery
3️⃣Making a web scraping application with Python, Celery, and Django
https://codeburst.io/building-an-rss-feed-scraper-with-python-73715ca06e1f
发现于
https://twitter.com/RSSCircus/status/1271810732225593346
题图来自 DataCamp。