Santhosh Kumar Profile picture
Oct 12 β€’ 14 tweets β€’ 5 min read
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 @Santhoscheeku77

Oct 1
I learned python by spending $0 on Online

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

A thread 🧡 πŸ‘‡
1 - CS50: Introduction to Computer Science

This is one of the best python courses available online and if you're looking for web development,this might be the one

pll.harvard.edu/course/cs50-in…
2 - Crash Course on Python

This course is part of the Google IT Automation with Python Professional Certificate and every beginner can try it

in.coursera.org/learn/python-c…
Read 7 tweets
Sep 29
Metric is required to Evaluate a Machine Learning Model

There are many metrics to check how well a Regression Model behaves , But the most common one is RMSE

Here’s how you can check the accuracy of your next ML model

Thread 🧡

Taught in #MLZoomcamp by @Al_Grigor
RMSE - Root Mean Squared Error

It tells us the average loss/distance between our predicted values and target in the dataset

It's simply how much the trained model disagrees with the actual Target value
and It tells us how large the errors that our model makes are.
RMSE is computed with the formula below in pic:

Here,

βœ” ' Predicted' is the Value predicted by the Model
βœ” 'Actual" is the Target value(y)
βœ” 'N' is the number of observations in the dataset Image
Read 8 tweets
Sep 24
If you've ever wanted to enhance your Python skills, this thread is for you.

Here are the top Free Websites to practice coding (all programming languages)πŸ’» :

Thread 🧡 1 of 6
🧡 2 of 6 - Hacker Rank

hackerrank.com
🧡 3 of 6 - Leet Code

leetcode.com
Read 8 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 on Twitter!

:(