Santhosh Kumar Profile picture
Oct 12, 2022 14 tweets 5 min read Read on X
Pandas is a powerful library in Data Analytics and Data Science,

Here are 10 Pandas functions to enhance your Data Analysis skills,

A Thread 🧵 👇 ( with code snippets )
1 - To Read CSV and Excel files :

These Functions will be used in almost every Project, They are used to read a CSV or an excel file to a pandas DataFrame format.
2 - Head and Tail Function :

◾ df.head() returns first n rows, if no input is given it returns 5 rows
◾ df.tail() returns the last n rows, if no input is given it returns 5 rows
3 - Columns Function :

When we have a big dataset with many columns it will be difficult to see all columns, hence we can use df.columns to print all columns
4 - length and Shape Functions :
◾ len(df) function Provides the length of the DataFrame
◾ df.shape function returns no of rows and columns in a data frame
5 - Describe Function :

Then to understand the basic statistics of variables we can use df.describe(). It will give you a count, mean, standard deviation, and also 5 number summary.
6 - Nunique Function :

To get the total unique values of variables, we can use df.nunique(). It will give all the unique values a variable contains.
7 - iloc() Function :

This function takes as a parameter the rows and column indices and gives you the subset of the DataFrame accordingly
8 - loc() Function :

This function does almost the similar operation as .iloc() function. But here we can specify exactly which row index we want and also the name of the columns we want in our subset
9 - dtypes Function :

It is necessary to know the data types of the variables before we dive into the analysis, visualization, or predictive modeling, We use this function to find the data type of a Column
10 - Replacing Null Values :

This function .fillna() replaces the null values with some other value of your choice
Bonus :
df.count()

It provides you with the number of data in the DataFrame in the specified direction. When the direction is 0, it provides the number of data in the columns:
That's a wrap!

If you enjoyed this thread:

1. Follow me @Santhoscheeku77 for more of these Data Science & Python content
2. RT the tweet below to share this thread with your audience
Also, check out my thread on Free Machine Learning & Deep Learning Courses provided by Universities online

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Santhosh Kumar

Santhosh Kumar Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @SanthoshKumarS_

May 3, 2023
AI enthusiasts, I have some exciting news for you! 📣

Recently, the bar for SOTA in Computer vision has been raised,

Introducing YOLO-NAS: A Revolutionary Model for Object Detection,

It's FREE and Open Source 👇👇👇
Researchers at Deci used Neural Architecture Search (NAS) to automate the discovery of an optimal object detection architecture.

🤯 They used deep learning to find a new deep learning architecture!

It outperforms the majority of current state-of-the-art models.
Perks :

-Enhanced detection of small objects

- Ideal for real-time edge-device applications

- improved localization accuracy,

- higher performance-per-compute ratio.

The standards established are Crazy! Image
Read 6 tweets
May 2, 2023
👋 Hi everyone, I'm gonna share how I used @bright_data to collect public web data for my Market research project.

It was a game-changer for me and I hope it can help you too.

--Thread--
I wanted to understand the e-commerce landscape in India.

I also wanted to know things like :

- The top online retailers,
- Most popular products,
- Price trends,
- Customer reviews, etc.
The best way to get this information was to scrape public web data

From various sources:
- such as websites,
- social media platforms,
- search engines, etc.

But I also knew that this was not an easy task.
Read 11 tweets
Apr 21, 2023
I learned AI/ML by spending $0 Online.

Here are 5 Free Courses that will teach you ML better than the paid ones,

A thread 🧵 👇
1 - Python :

Python is one of the most popular and versatile languages available today.

It is used for everything from simple scripting to Machine learning.

Link here 👇

freecodecamp.org/learn/scientif…
2 - Data Analysis :

This is a hands-on, beginner-friendly introduction to data analysis course,

Itcovers the fundamentals of Python, Numpy, Pandas, Data Visualisation, and Exploratory Data Analysis.

Link here 👇

jovian.com/learn/data-ana…
Read 7 tweets
Apr 20, 2023
Have you heard of Label Encoding?

It's a technique used to convert categorical data into numerical data for algorithms.

Here's why you should know about it! 👇 ( Encoders Series Part-2) Image
- Label encoding assigns a unique numerical value to each category in a column.
- This makes it easier for ML algorithms to process categorical data,
- Improving their accuracy and performance.

This too has 2 ways to implement :

1. Pandas : Image
2 - Sklearn : Image
Read 6 tweets
Apr 19, 2023
AI/ML jobs are Booming 🚀

Become an ML Engineer with these 5 Industry level Certifications from Coursera,

Tricks to get these for FREE at the end of this thread ( Don't miss out)📌
1 - Machine Learning Specialization :

Break into ML with this Bible of Machine Learning.

This is a 3-course Specialisation by Andrew Ng.

There is no better way to start an ML career than this.

Link:

coursera.org/specialization…
2 - Deep Learning Specialization :

Become a Machine Learning expert.

Master the fundamentals of deep learning and break into AI. Recently updated with cutting-edge techniques!

Link:

coursera.org/specialization…
Read 8 tweets
Mar 21, 2023
Want to Use GPT-4 for FREE?

With the help of the GPT-4-powered Microsoft Bing chatbot, you can now!

I will demonstrate my findings with the GPT-4 Free version in this thread. Image
1 - I asked the chatbot to build a straightforward landing page, and it provided me with the precise code I requested.

here's the response and output : Code written by AIVisualised Output
2 - The chatbot was then asked to describe the Clustering algorithm succinctly, and it did so better than ChatGPT. Bing ( GPT-4)ChatGPT
Read 6 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(