Machine Learning
41.9K subscribers
3.71K photos
38 videos
50 files
754 links
Real Machine Learning — simple, practical, and built on experience.
Learn step by step with clear explanations and working code.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
• Group data by a column.
df.groupby('col1')

• Group by a column and get the sum.
df.groupby('col1').sum()

• Apply multiple aggregation functions at once.
df.groupby('col1').agg(['mean', 'count'])

• Get the size of each group.
df.groupby('col1').size()

• Get the frequency counts of unique values in a Series.
df['col1'].value_counts()

• Create a pivot table.
pd.pivot_table(df, values='D', index=['A', 'B'], columns=['C'])


VI. Merging, Joining & Concatenating

• Merge two DataFrames (like a SQL join).
pd.merge(left_df, right_df, on='key_column')

• Concatenate (stack) DataFrames along an axis.
pd.concat([df1, df2]) # Stacks rows

• Join DataFrames on their indexes.
left_df.join(right_df, how='outer')


VII. Input & Output

• Write a DataFrame to a CSV file.
df.to_csv('output.csv', index=False)

• Write a DataFrame to an Excel file.
df.to_excel('output.xlsx', sheet_name='Sheet1')

• Read data from an Excel file.
pd.read_excel('input.xlsx', sheet_name='Sheet1')

• Read from a SQL database.
pd.read_sql_query('SELECT * FROM my_table', connection_object)


VIII. Time Series & Special Operations

• Use the string accessor (.str) for Series operations.
s.str.lower()
s.str.contains('pattern')

• Use the datetime accessor (.dt) for Series operations.
s.dt.year
s.dt.day_name()

• Create a rolling window calculation.
df['col1'].rolling(window=3).mean()

• Create a basic plot from a Series or DataFrame.
df['col1'].plot(kind='hist')


#Python #Pandas #DataAnalysis #DataScience #Programming

━━━━━━━━━━━━━━━
By: @DataScienceM ✨
❤6👍1🔥1
📌 How to Implement Randomization with the Python Random Module

🗂 Category: PROGRAMMING

🕒 Date: 2025-11-24 | ⏱️ Read time: 6 min read

Master Python's built-in random module to introduce unpredictability into your applications. This guide explores how to effectively generate random outputs, a crucial technique for tasks ranging from shuffling data and creating simulations to developing games and selecting random samples. Learn the core functions and practical implementations to leverage randomization in your code.

#Python #Programming #CodingTips #Random
❤3
📌 How to Generate QR Codes in Python

🗂 Category: PROGRAMMING

🕒 Date: 2025-12-02 | ⏱️ Read time: 7 min read

Unlock the ability to generate QR codes with Python. This beginner-friendly tutorial provides a step-by-step guide to using the popular "qrcode" package. Learn how to easily create and customize QR codes for your applications, from encoding URLs to embedding custom data.

#Python #QRCode #Programming #PythonTutorial
❤5
👣 Rust Interview Deep Dive 🦀🔍

A repository for systematic preparation for Rust interviews at the middle, senior, and staff levels. 💼📚

Inside 100 real questions from interviews in product and infrastructure companies, detailed analyses with code examples and scenarios of tasks that occur in production. 💻🏗️ Not "guess the program's output", but the mechanics on which real services are built. 🛠️🚀

Here are lock-free structures, self-referential types in async, FFI with tensor libraries, correct Send on guards via await, memory ordering under loom, soundness of custom collections. 🔒⚡ And it all starts with the basics. Ownership, borrowing, lifetimes. 🧱🔄 Those who want can start from scratch or at the staff level. 🚶‍♂️👨‍💻

https://github.com/Develp10/rustinterviewquiestions 🔗

#Rust #Programming #InterviewPrep #SoftwareEngineering #SystemsProgramming #CareerGrowth
❤5
The math.perm() method

The math.perm() method in Python returns the number of ways to select k elements from n elements, with and without repetition. 🧮

Syntax:
math.perm(n, k)

Where:
n: The number of elements from which k elements are selected.
k: The number of elements that are selected.

In the first example, the method returns the number of ways to select 3 elements from 5 elements. The result is 60 ways. 📊
In the second example, the method returns the number of ways to select 5 elements from 10 elements. The result is 252 ways. 🚀

#Python #Math #Coding #Programming #DataScience #Tech

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤10
Media is too big
VIEW IN TELEGRAM
A Collection of Machine Learning Libraries for Python 🤖

A large repository containing over 900 libraries and frameworks for machine learning. 📚

All projects are sorted by quality and popularity, which helps you quickly find the best tools for working with AI and ML. ⚙️

Repo: https://github.com/ml-tooling/best-of-ml-python?tab=readme-ov-file#vector-similarity-search-ann

#MachineLearning #Python #AI #DataScience #MLTools #Programming

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤8
📚 "Mathematical Methods in Data Science with Python" by Sebastian Roche.

🔗 https://mmids-textbook.github.io

#Python #DataScience #MachineLearning #Mathematics #Programming #Learning

✨ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤4
Forwarded from Udemy Free
Hands On Python Data Science - Data Science Bootcamp

Master Python for Data Science with Real-World Applications: Dive Deep into Data Analysis, Machine Learning

🏷 Category: Development
🌍 Language: English
👥 Students: 31,524 students
⭐️ Rating: 4.3/5.0
💰 Price: $14.99 ⟹ FREE
🆔 Coupon: •••••••••• (tap below to reveal)

🔓 Tap "Get Coupon" below — the code unlocks inside the app after a short rewarded ad.

💎 By: https://t.iss.one/Udemy26
#Programming #Coding #Development #Tech #Python #DataScience
❤3💩1
A distinctive bot for subscribing to courses on the most popular educational platforms across multiple fields, most notably programming, artificial intelligence, mechanics, medicine, and other sciences. 🎓🤖

This bot provides a free subscription to any course available within the bot. 🆓

https://t.iss.one/UdemySybot?start=ref_418788114

#FreeCourses #Programming #AI #Education #Udemy #TelegramBots
❤5💩1