TGViewer
Machine Learning Machine Learning @machinelearning9 · 41.7K subscribers
Post #6046 2.5K
PANDAS — CHEAT SHEET
1. DATA LOADING
Method          | What it does       
----------------+--------------------
pd.read_csv() | Reads CSV file
pd.read_excel() | Reads Excel file
pd.read_sql() | Reads data from SQL
pd.read_json() | Reads JSON file

2. DATA ANALYSIS
Method        | What it does              
--------------+---------------------------
df.head() | Shows first rows
df.info() | Table information
df.describe() | Statistics by columns
df.shape | Table size (rows, columns)
df.columns | List of column names

3. DATA SELECTION
Method     | What it does                     
-----------+----------------------------------
df.loc[] | Selection by row and column names
df.iloc[] | Selection by indices
df.query() | Filtering by condition

4. DATA CLEANING
Method               | What it does                   
---------------------+--------------------------------
df.isnull() | Check for missing values (NULL)
df.dropna() | Remove rows with missing values
df.fillna() | Fill missing values
df.drop_duplicates() | Remove duplicates
df.astype() | Change data type

5. ANALYTICS
Method            | What it does               
------------------+----------------------------
df.groupby() | Data grouping
df.agg() | Aggregation in groups
df.value_counts() | Count of unique values
df.mean() | Mean value
df.median() | Median
df.corr() | Correlation between columns

6. DATA MERGING
Method      | What it does        
------------+---------------------
pd.merge() | SQL JOIN by column
pd.join() | JOIN by index
pd.concat() | Glue tables together

⭐ TOP 10 METHODS

read_csv() head() info() loc[] iloc[] query() groupby() merge() fillna() sort_values()
  • ❤ 11
  • 💩 1
More from @machinelearning9
  1. Oct 7, 2026A distinctive bot for subscribing to courses on the most popular educational platforms acr…
  2. Oct 7, 2026100 Machine Learning Interview Questions and Answers 🤖 ✨ Join Best TG Channels https://t.…
  3. Oct 7, 2026Hands On Python Data Science - Data Science Bootcamp Master Python for Data Science with R…
  4. Oct 6, 2026"Understanding Transformers and Attention Mechanisms" - a concise mathematical introductio…
  5. Oct 5, 2026Machine Learning pinned «https://t.me/UdemySybot?start=ref_418788114 Get Free Courses 😁»
  6. Oct 5, 2026📚 "Fundamentals of Computer Vision" is a free online book published by MIT Press, providi…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →