PyData Careers
21.2K subscribers
247 photos
11 videos
26 files
416 links
Python Data Science jobs, interview tips, and career insights for aspiring professionals.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Index of the largest number

There are several ways to find the index of the largest number in lists.

▪️The function max() and the method index()

You can use the index() method together with the max() function to get the index of the largest number in a list. In this example, we use max() to find the largest number in the list and pass it to index() as an argument. The index() method will return the index of the first occurrence of the largest number.

In [23]: my_list = [12, 45, 67, 89, 34, 67, 13]
         largest_number_index = my_list.index(max(my_list))
         largest_number_index

Out[23]: 3


▪️max() and enumerate()

In the code below, the max() function takes a list and a lambda function as arguments. We add enumerate() to the list so that it can return both the number from the list and its index (a tuple). We set the start parameter in enumerate() so that the numbering starts at position 0. The lambda function is used to find the maximum value based on the second element of each tuple, that is, the value from my_list.

In [24]: my_list = [12, 45, 67, 89, 34, 67, 13]

         max_num = max(enumerate(my_list, start=0),
                       key = lambda x: x[1])
         print('Index of the largest number:',
               max_num[0])

Index of the largest number: 3


▪️List comprehension with the enumerate() function

In the code below, we use list comprehension together with enumerate() to find the index of the largest number in a list. We create a variable max_value - it stores the maximum value from the list. Then, using enumerate(), we find the index(es) where the value coincides with this maximum.

In [25]: my_list = [12, 45, 67, 89, 34, 67, 13]

         max_value = max(my_list)
         max_indices = [idx for idx, val in enumerate(my_list) if val == max_value]
         max_indices

Out[25]: [3]


The output shows that the largest number is at index 3.

👉 https://t.me/DataScienceQ
Please open Telegram to view this post
VIEW IN TELEGRAM
6
Личная жизнь почти миллионера в 35, пока мне 22

https://t.me/bozhehraninas
6
👉 Dependency Management with Python Poetry

Let's cover the essential aspects of dependency management in Python using the popular Poetry package. 🐍

Here's a brief summary:

• Install Poetry: To get started with Poetry, simply install it using pip: pip install poetry.
• Create a new project: Create a new directory for your project and initialize a Poetry environment: poetry init and poetry add <package>.
• Manage dependencies: Declare and group dependencies in pyproject.toml: dependencies = ["<package1>", "<package2>"].
• Lock files: Use poetry.lock to manage dependency versions: poetry install or poetry update to resolve conflicts.
• Virtual environments: Create a virtual environment for isolation and reuse dependencies: poetry new env-name.

That's it! This setup will help you keep your project dependencies up to date and organized.
1
📊 Automate Python Data Analysis With YData Profiling

Get Quick Insights from Your Data
==============================

The YData Profiling package is here to help! It generates an exploratory data analysis (EDA) report with a few lines of code. This report provides dataset and column-level analysis, including plots and summary statistics to quickly understand your dataset.

💡Key Features:

• Interactive reports containing EDA results
• Summary statistics, visualizations, correlation matrices, and data quality warnings from DataFrames
• Exportable to HTML or JSON for sharing with others

Save time and gain insights from your data. Try using YData Profiling in your Python projects.
2
Access Multiple AI Models via OpenRouter API in Python 🤖

One way to access multiple AI models from a single script is by using the OpenRouter API. This unified routing layer allows you to call models from various providers with minimal code changes.

Key Features:

Unified API: Call models from multiple providers through a single API.
Single Script: Access models from several providers in one Python script.
Scalability: Easily integrate with various AI providers. OPENROUTER API
1
🔑 Unlocking the Power of Python's __init__.py: A Must-Know for Package Managers 🚀
---------------------------------------------------------------

Did you know that Python's special __init__.py file marks a directory as a regular package, allowing you to import its modules and make them available to users? This is especially useful when working with complex projects or sharing code with others.

By adding the necessary __init__.py file, you can initialize package-level variables, define functions or classes, and structure your package's namespace clearly for users. This will save time and ensure that your packages are easily importable.

Here's a simple example to get you started:
# my_package/__init__.py
name = 'My Package'
version = '1.0'

def main():
print(f'Hello, World! {name} v{version}')

if __name__ == '__main__':
main()

This code defines a package called "my_package" with a name and version. The main function prints a message to the console.

So, what does this mean for you? It means that by using __init__.py, you can make your packages more manageable and reusable. Try adding it to your project and see the difference for yourself!
2
ML Engineer, LLM Engineer, take note: TorchCode

A platform with practice tasks for basic implementations in PyTorch and questions on Transformer, which are often encountered in interviews.

→ Gathers in 39 structured tasks typical for #ML #interviews - implementations of operators, modules, and architectures in #PyTorch.
→ Provides auto-checking, gradient checking, time measurement, and instant feedback, so that the practice more closely resembles #LeetCode for interviews.
→ Built on the basis of Jupyter Notebook, while supporting one-click reset, hints, reference solutions, and progress tracking.
→ Covers such frequent topics as ReLU, Softmax, LayerNorm, Attention, RoPE, Flash Attention, #LoRA, $MoE, and others.
→ Supports online mode via Hugging Face Spaces, opening individual tasks in #Google #Colab, and local launch via #Docker.

👉 https://github.com/duoan/TorchCode
Please open Telegram to view this post
VIEW IN TELEGRAM
2
Forwarded from Code With Python
This channels is for Programmers, Coders, Software Engineers.

0️⃣ Python
1️⃣ Data Science
2️⃣ Machine Learning
3️⃣ Data Visualization
4️⃣ Artificial Intelligence
5️⃣ Data Analysis
6️⃣ Statistics
7️⃣ Deep Learning
8️⃣ programming Languages

https://t.me/addlist/8_rRW2scgfRhOTc0

https://t.me/Codeprogrammer
Please open Telegram to view this post
VIEW IN TELEGRAM
2👍1
🎁 23 Years of SPOTO – Claim Your Free IT Certs Prep Kit!

🔥Whether you're preparing for #Python, #AI, #Cisco, #PMI, #Fortinet, #AWS, #Azure, #Excel, #comptia, #ITIL, #cloud or any other in-demand certification – SPOTO has got you covered!

Free Resources :
・Free Python, Excel, Cyber Security, Cisco, SQL, ITIL, PMP, AWS courses: https://bit.ly/4lk4m3c
・IT Certs E-book: https://bit.ly/4bdZOqt
・IT Exams Skill Test: https://bit.ly/4sDvi0b
・Free AI material and support tools: https://bit.ly/46TpsQ8
・Free Cloud Study Guide: https://bit.ly/4lk3dIS

🎁 Join SPOTO 23rd anniversary Lucky Draw:
📱 iPhone 17
🛒free order
🛒 Amazon Gift Card $50/$100
📘 AI/CCNA/PMP Course Training + Study Material + eBook
Enter the Draw 👉: https://bit.ly/3NwkceD

👉 Become Part of Our IT Learning Circle! resources and support:
https://chat.whatsapp.com/Cnc5M5353oSBo3savBl397

💬 Want exam help? Chat with an admin now!
wa.link/rozuuw

Last Chance – Get It Before It’s Gone!
Follow the Machine Learning with Python channel on WhatsApp: https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
3
Demo Git Kit

🚀 Demo Git Kit is a powerful Python tool for managing hardware projects. 🤖

* Historical price data for parts provides predictions and insights.
* Supply chain risk calculation helps identify potential issues.
* Alternative part finder uses mock data to locate suitable alternatives.
* LLM-based part search leverages artificial intelligence for faster results.
* GIT-ish BOM management keeps track of component boards.
* CSV Import/Export facilitates data exchange.

Use it to streamline your hardware project workflow. Try the demo website: 📊 [https://odem-git-main-skymark.vercel.app/](https://odem-git-main-skymark.vercel.app/)
1
🚀 Nemilia: The Single HTML File Multi-Agent AI Workspace 🚀

Are you tired of relying on external services for your AI projects? Nemilia is here to revolutionize the way you work with multi-agent AI. This single HTML file workspace allows you to build, design, and execute custom agents with complete control over their roles, personalities, system prompts, and model overrides.

What You Get:

* Build and deploy custom agents with ease
* Design and automate workflows using a drag-and-drop pipeline builder
* Execute MCP (Machine Communication Protocol) tools in real-time

Key Benefits:

• No backend, no install, no build step - you own the entire runtime
• AI sovereignty at your fingertips - all data and keys are on your machine
• Complete control over agents, workflows, and data usage
• Fast execution with parallel DAG (Directed Acyclic Graph) execution

Give Nemilia a try today🔥
The Unseen Challenge of Digital Humanities: A Peek into Static Sites and Python 🌐

Digital humanities is a vast field that encompasses various disciplines, including literature, history, philosophy, and more. However, what happens when funding for these projects ends but the website remains live? This is where static sites come in – a simple yet powerful solution to preserve digital content.

David Flood from Harvard's DARTH team recently shared his insights on this topic. To dive deeper into the issue, let's explore how Python can be used to overcome static site challenges. Here are some key takeaways:

Static Sites: A static site is a basic website that doesn't require server-side rendering or database interactions.
Client-Side Search: Using client-side search libraries like django-search, django-rst, or pyspellchecker can improve the user experience.
Sneaky Python: Leverage Python's extensive libraries, such as BeautifulSoup and requests, to parse HTML documents and perform tasks on the fly.

To better understand these concepts, let's take a look at some examples:

📄 A static website for an online archive of U.S. amendment proposals:
import requests

url = "https://example.com/amendment-proposals"
response = requests.get(url)

# Parse HTML document and extract relevant information
soup = BeautifulSoup(response.content, 'html.parser')
data = soup.find('table').text.strip()

print(data) # Output: ...


📊 A client-side search library for a digital humanities project:
import django_search

# Initialize the search engine
search_engine = django_search.SearchEngine(
settings='SEARCH_ENGINE_SETTINGS',
)

# Define search queries and parameters
query = "Irish folklore"
params = {
'q': query,
'fields': ['title', 'description']
}

# Perform search and retrieve results
results = search_engine.search(query, params)


By leveraging Python's versatility and extensive libraries, we can overcome the challenges associated with static sites. Remember, digital humanities is all about preserving knowledge, and sometimes it's the simplest solutions that make the most impact.
2
🚀 AI System Builders — finally something serious.

A German company 🇩🇪 (Brainlancer GmbH) is launching a curated B2B AI platform on April 2026.

This is NOT:
a freelance marketplace
an agency network

This is:
a verified AI builder network

If you're accepted, you can offer your AI systems (e.g. Lead Gen, Customer Support, Recruiting Automation) for ~$2,499 setup + monthly maintenance.

👉 You focus on building systems
👉 Brainlancer handles clients & takes 20%

---

💡 If you can build real, end-to-end AI systems (not just prompts), this is for you.

---

Apply here (form takes 5–7 min):
https://assesment.brainlancer.com/?src=tinvite

🎥 Quick overview video (thumbs up 👍):
https://www.youtube.com/watch?v=jwhxqB-idsg&t=1s

👤 CEO (LinkedIn):
https://www.linkedin.com/in/soner-catakli/

---

Early access is limited.
2