Python for Data Analysts
48.2K subscribers
504 photos
64 files
320 links
Find top Python resources from global universities, cool projects, and learning materials for data analytics.

For promotions: @coderfun

Useful links: heylink.me/DataAnalytics
Download Telegram
Python Cheatsheet โœ…
๐Ÿ‘7
๐ˆ๐ฆ๐ฉ๐จ๐ซ๐ญ๐ข๐ง๐  ๐๐ž๐œ๐ž๐ฌ๐ฌ๐š๐ซ๐ฒ ๐‹๐ข๐›๐ซ๐š๐ซ๐ข๐ž๐ฌ:

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

๐‹๐จ๐š๐๐ข๐ง๐  ๐ญ๐ก๐ž ๐ƒ๐š๐ญ๐š๐ฌ๐ž๐ญ:

df = pd.read_csv('your_dataset.csv')

๐ˆ๐ง๐ข๐ญ๐ข๐š๐ฅ ๐ƒ๐š๐ญ๐š ๐ˆ๐ง๐ฌ๐ฉ๐ž๐œ๐ญ๐ข๐จ๐ง:

1- View the first few rows:
df.head()

2- Summary of the dataset:
df.info()

3- Statistical summary:
df.describe()

๐‡๐š๐ง๐๐ฅ๐ข๐ง๐  ๐Œ๐ข๐ฌ๐ฌ๐ข๐ง๐  ๐•๐š๐ฅ๐ฎ๐ž๐ฌ:

1- Identify missing values:
df.isnull().sum()

2- Visualize missing values:
sns.heatmap(df.isnull(), cbar=False, cmap='viridis')
plt.show()

๐ƒ๐š๐ญ๐š ๐•๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง:

1- Histograms:
df.hist(bins=30, figsize=(20, 15))
plt.show()

2 - Box plots:
plt.figure(figsize=(10, 6))
sns.boxplot(data=df)
plt.xticks(rotation=90)
plt.show()

3- Pair plots:
sns.pairplot(df)
plt.show()

4- Correlation matrix and heatmap:
correlation_matrix = df.corr()
plt.figure(figsize=(12, 8))
sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm')
plt.show()

๐‚๐š๐ญ๐ž๐ ๐จ๐ซ๐ข๐œ๐š๐ฅ ๐ƒ๐š๐ญ๐š ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ:
Count plots for categorical features:

plt.figure(figsize=(10, 6))
sns.countplot(x='categorical_column', data=df)
plt.show()

Python Interview Q&A: https://topmate.io/coding/898340

Like for more โค๏ธ

ENJOY LEARNING ๐Ÿ‘๐Ÿ‘
๐Ÿ‘6๐Ÿ‘1
๐—ง๐—ผ๐—ฝ ๐Ÿฑ ๐—™๐—ฟ๐—ฒ๐—ฒ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐—ฌ๐—ผ๐˜‚ ๐—–๐—ฎ๐—ป ๐—˜๐—ป๐—ฟ๐—ผ๐—น๐—น ๐—œ๐—ป ๐—ง๐—ผ๐—ฑ๐—ฎ๐˜†!๐Ÿ˜

In todayโ€™s fast-paced tech industry, staying ahead requires continuous learning and upskillingโœจ๏ธ

Fortunately, ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ is offering ๐—ณ๐—ฟ๐—ฒ๐—ฒ ๐—ฐ๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฐ๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ that can help beginners and professionals enhance their ๐—ฒ๐˜…๐—ฝ๐—ฒ๐—ฟ๐˜๐—ถ๐˜€๐—ฒ ๐—ถ๐—ป ๐—ฑ๐—ฎ๐˜๐—ฎ, ๐—”๐—œ, ๐—ฆ๐—ค๐—Ÿ, ๐—ฎ๐—ป๐—ฑ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ without spending a dime!โฌ‡๏ธ

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/3DwqJRt

Start a career in tech, boost your resume, or improve your data skillsโœ…๏ธ
๐—ช๐—ฎ๐—ป๐˜ ๐˜๐—ผ ๐—บ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—˜๐˜…๐—ฐ๐—ฒ๐—น ๐—ถ๐—ป ๐—ท๐˜‚๐˜€๐˜ ๐Ÿณ ๐—ฑ๐—ฎ๐˜†๐˜€?

๐Ÿ“Š Here's a structured roadmap to help you go from beginner to pro in a week!

Whether you're learning formulas, functions, or data visualization, this guide covers everything step by step.

๐‹๐ข๐ง๐ค๐Ÿ‘‡ :-

https://pdlink.in/43lzybE

All The Best ๐Ÿ’ฅ
๐Ÿ‘2
Reverse a list in Python
๐Ÿ‘7โค2
๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐˜๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐——๐—ฎ๐˜๐—ฎ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€! ๐Ÿ“Š๐Ÿš€

Want to master data analytics? Here are top free courses, books, and certifications to help you get started with Power BI, Tableau, Python, and Excel.

๐‹๐ข๐ง๐ค๐Ÿ‘‡
https://pdlink.in/41Fx3PW

All The Best ๐Ÿ’ฅ
๐๐ฒ๐ญ๐ก๐จ๐ง ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ ๐๐ซ๐ž๐ฉ:

Must practise the following questions for your next Python interview:

1. How would you handle missing values in a dataset?

2. Write a python code to merge datasets based on a common column.

3. How would you analyse the distribution of a continuous variable in dataset?

4. Write a python code to pivot an dataframe.

5. How would you handle categorical variables with many levels?

6. Write a python code to calculate the accuracy, precision, and recall of a classification model?

7. How would you handle errors when working with large datasets?

I have curated the best interview resources to crack Python Interviews ๐Ÿ‘‡๐Ÿ‘‡
https://topmate.io/coding/898340

Hope you'll like it

Like this post if you need more resources like this ๐Ÿ‘โค๏ธ
๐Ÿ‘2โค1
Data Analysis with Python: Zero to Pandas

Data Analysis with Python: Zero to Pandas" is a practical and beginner-friendly introduction to data analysis covering the basics of Python, Numpy, Pandas, Data Visualization, and Exploratory Data Analysis.

The course is self-paced and there are no deadlines. There are no prerequisites for this course.

๐Ÿ‘ŒWatch hands-on coding-focused video tutorials
๐Ÿ‘ŒPractice coding with cloud Jupyter notebooks
๐Ÿ‘ŒBuild an end-to-end real-world course project
๐Ÿ‘ŒEarn a verified certificate of accomplishment
๐Ÿ‘ŒInteract with a global community of learners


https://jovian.ai/learn/data-analysis-with-python-zero-to-pandas
๐Ÿ‘4โค1
๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น๐˜€ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜!๐Ÿ˜

Want to upskill in AI, Data Science, Web Development, or Ethical Hacking?๐Ÿ‘‹

These 7 full courses cover everything from beginner to advanced levelsโ€”and theyโ€™re all ๐Ÿญ๐Ÿฌ๐Ÿฌ% ๐—™๐—ฅ๐—˜๐—˜!๐ŸŽŠ

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/4bQ6FpS

These resources will help you gain in-demand skills & boost your career in 2025!๐Ÿ’ซ
๐Ÿ‘3โค2
Practice projects to consider:

1. Implement a basic search engine:
Read a set of documents and build an index of keywords. Then, implement a search function that returns a list of documents that match the query.

2. Build a recommendation system: Read a set of user-item interactions and build a recommendation system that suggests items to users based on their past behavior.

3. Create a data analysis tool: Read a large dataset and implement a tool that performs various analyses, such as calculating summary statistics, visualizing distributions, and identifying patterns and correlations.

4. Implement a graph algorithm: Study a graph algorithm such as Dijkstra's shortest path algorithm, and implement it in Python. Then, test it on real-world graphs to see how it performs.
๐Ÿ‘1
๐—ช๐—ฎ๐—ป๐˜ ๐˜๐—ผ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—”๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜? ๐—›๐—ฒ๐—ฟ๐—ฒโ€™๐˜€ ๐—›๐—ผ๐˜„!๐Ÿ˜

Learn AI from scratch with these 6 YouTube channels! ๐ŸŽฏ

๐Ÿ’กWhether youโ€™re a beginner or an AI enthusiast, these top AI experts will guide you through AI fundamentals, deep learning, and real-world applications

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/4iIxCy8

๐Ÿ“ข Start watching today and stay ahead in the AI revolution! ๐Ÿš€
๐Ÿ‘2โค1
Dictionary Comprehension using Python โœ…
๐Ÿ‘2
๐—›๐—ฎ๐—ฟ๐˜ƒ๐—ฎ๐—ฟ๐—ฑ ๐—ถ๐˜€ ๐—ข๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ โ€“ ๐——๐—ผ๐—ปโ€™๐˜ ๐— ๐—ถ๐˜€๐˜€ ๐—ข๐˜‚๐˜!๐Ÿ˜

Want to learn Data Science, AI, Business, and more from Harvard University for FREE?๐ŸŽฏ

This is your chance to gain Ivy League knowledge without spending a dime!๐Ÿคฉ

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/3FFFhPp
๐Ÿ’ก Whether youโ€™re a student, working professional, or just eager to learnโ€”

This is your golden opportunity!โœ…๏ธ
๐Ÿ‘2โค1
Data Analyst INTERVIEW QUESTIONS AND ANSWERS
๐Ÿ‘‡๐Ÿ‘‡

1.Can you name the wildcards in Excel?

Ans: There are 3 wildcards in Excel that can ve used in formulas.

Asterisk (*) โ€“ 0 or more characters. For example, Ex* could mean Excel, Extra, Expertise, etc.

Question mark (?) โ€“ Represents any 1 character. For example, R?ain may mean Rain or Ruin.

Tilde (~) โ€“ Used to identify a wildcard character (~, *, ?). For example, If you need to find the exact phrase India* in a list. If you use India* as the search string, you may get any word with India at the beginning followed by different characters (such as Indian, Indiana). If you have to look for Indiaโ€ exclusively, use ~.

Hence, the search string will be india~*. ~ is used to ensure that the spreadsheet reads the following character as is, and not as a wildcard.


2.What is cascading filter in tableau?

Ans: Cascading filters can also be understood as giving preference to a particular filter and then applying other filters on previously filtered data source. Right-click on the filter you want to use as a main filter and make sure it is set as all values in dashboard then select the subsequent filter and select only relevant values to cascade the filters. This will improve the performance of the dashboard as you have decreased the time wasted in running all the filters over complete data source.


3.What is the difference between .twb and .twbx extension?

Ans:
A .twb file contains information on all the sheets, dashboards and stories, but it wonโ€™t contain any information regarding data source. Whereas .twbx file contains all the sheets, dashboards, stories and also compressed data sources. For saving a .twbx extract needs to be performed on the data source. If we forward .twb file to someone else than they will be able to see the worksheets and dashboards but wonโ€™t be able to look into the dataset.


4.What are the various Power BI versions?

Power BI Premium capacity-based license, for example, allows users with a free license to act on content in workspaces with Premium capacity. A user with a free license can only use the Power BI service to connect to data and produce reports and dashboards in My Workspace outside of Premium capacity. They are unable to exchange material or publish it in other workspaces. To process material, a Power BI license with a free or Pro per-user license only uses a shared and restricted capacity. Users with a Power BI Pro license can only work with other Power BI Pro users if the material is stored in that shared capacity. They may consume user-generated information, post material to app workspaces, share dashboards, and subscribe to dashboards and reports. Pro users can share material with users who donโ€™t have a Power BI Pro subscription while workspaces are at Premium capacity.

ENJOY LEARNING ๐Ÿ‘๐Ÿ‘
โค2๐Ÿ‘2
๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฆ๐—ผ๐—ณ๐˜ ๐—ฆ๐—ธ๐—ถ๐—น๐—น๐˜€ ๐—ณ๐—ผ๐—ฟ ๐—–๐—ฎ๐—ฟ๐—ฒ๐—ฒ๐—ฟ ๐—ฆ๐˜‚๐—ฐ๐—ฐ๐—ฒ๐˜€๐˜€!๐Ÿ˜

Want to stand out in your career?

Soft skills are just as important as technical expertise! ๐ŸŒŸ

Here are 3 FREE courses to help you communicate, negotiate, and present with confidence

๐‹๐ข๐ง๐ค๐Ÿ‘‡:-

https://pdlink.in/41V1Yqi

Tag someone who needs this boost! ๐Ÿš€
๐Ÿ‘2