TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #197 · 4 јан.

Подразумеваемые неймспейсы или неявные пакеты. Этот функционал добавлен в Python 3.3 Что он означает? Ранее, до 3.3 пакетами считались лишь директории, в которых есть файл __init__.py. Этот файл одновременно являлся свидетельством того, что директория это Python-пакет, и служил "телом" этого пакета. То есть местом, где можно написать код, как это делается внутри модуля. Этот код исполняется в момент импорта пакета, так что его принято называть "код инициализации пакета". Начиная с версии 3.3 Любая директория считается пакетом и Python будет пытаться использовать любую директорию для импорта. Конечно, не любую в файловой системе, а только те что находятся в sys.path. Это значит, что теперь __init__.py нужно делать только если: 🔸 вам требуется создать код инициализации пакета 🔸 нужна совместимость со старыми версиями Python На мой взгляд это немного упрощает разработку, делает её чище, но с другой стороны убивает некоторую однозначность происходящего. Например, я создал репозиторий со своей библиотекой и рядом положил код примеров или тестов. repo_name/ my_library/ __init__.py main.py examples/ exam1.py exam2.py В этом репозитории пакетом является только my_library, остальные директории это не пакеты, это просто дополнительный код в файлах. Директория examples не добавлена в sys.path, в ней нет рабочих модулей. Но если она лежит рядом с my_library, то Python вполне сможет импортнуть из неё модули, так как посчитает что examples это валидный пакет. Конечно, пример несколько надуманный. Никто не будет добавлять корень репозитория в sys.path. Но, я думаю, суть ясна. Иногда директория это просто директория а не пакет! #basic#pep

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #pricinganalyst

当前筛选 #pricinganalyst清除筛选
Data Science Jobs

@datasciencejobs · Post #2528 · 24.01.2025 г., 15:41

#vacancy#remote#dataanalyst#pricinganalyst#вакансия#удалённо Position: Pricing Data Analyst Company: Borzo (same day delivery service) Salary Range: up to 4500$ (negotiable) Employment is available in Armenia, Russia, India and Portugal. Work format: full-time, remote from any country About company Borzo is one of the biggest and most technologically advanced players in the global same-day delivery market. We provide unparalleled convenience to businesses and people, all the while creating millions of self-managed courier jobs. We strive to make delivery easier and cheaper than getting out of a house or office. We operate in multiple countries with India as the top priority, and already deliver more than 1,500,000 parcels monthly. To remain on the forefront of this promising, often surprising yet already highly competitive market, each day we have to learn more about our users than we knew yesterday and than our peers understand now. We are looking for experienced full-time Pricing Data Analyst to play a pivotal role in Borzo's growth journey. You will be working as a part of the Marketplace team with a functional reporting to the Lead of Analytics. Your mission will be to help the team to grow marketplace earnings and/or volumes within SLA constraints by continuously improving our base and dynamic pricing algorithms both for clients and couriers. What you will do • Build statistical, optimization, and machine learning models in base and dynamic pricing; • Design and execute experiments and interpret the results to draw detailed and actionable conclusions; • Help the team to find critical product/pricing problems, develop impactful hypotheses and recommend action plans. Required experience and skills • 3+ years experience as a Product Analyst, Data Analyst, or another type of data analysis-focused functions; • Experience in algorithm development and prototyping; • Successful application of base and dynamic pricing optimization models and algorithms; • Advanced proficiency in data interpretation (critical thinking, identifying biases or limitations, evaluating data source reliability, solid knowledge of statistics); • Proficiency in data manipulation (cleaning, transforming, and reshaping data, experience with Python); • Advanced SQL expertise (optimizing queries for performance, CTE, window functions); • English level B2. You will get • Opportunity to make a difference: you will influence company revenue directly; • No bureaucracy—direct communication with all stakeholders; • Flexible schedule: work at your convenience. No overtime; • Remote work or an office in any country of our presence; • Industry leaders in the company’s management; • Co-workers from 5 countries with diverse cultural backgrounds; • Competitive income with social benefits and medical insurance from day one; • Optional relocation to Portugal after 2+ years; • All necessary work equipment provided. tg: @rom4lk