Top 28 Cheat Sheets for Machine Learning, Data Science, Probability, SQL & Big Data

avcontentteam 11 Dec, 2023 • 9 min read


  • Data Science is constantly evolving with new tools, frameworks and technologies
  • Each tool/technique has its own unique use case along with features and functions
  • Refer to this exhaustive list of cheat sheets concerning popular Data Science concepts


Data Science is an ever-growing field, there are numerous tools & techniques to remember. It is not possible for anyone to remember all the functions, operations and formulas of each concept. That’s why we have cheat sheets. But there are a plethora of cheat sheets available out there, choosing the right cheat sheet is a tough task. So, I decided to write this article.

Here I have selected the cheat sheets on the following criteria: comprehensiveness, clarity, and content.

After applying these filters, I have collated some 28 cheat sheets on machine learning, data science, probability, SQL and Big Data. For your convenience, I have segregated the cheat sheets separately for each of the above topics. There are cheat sheets on tools & techniques, various libraries & languages.

Read on to know which cheat sheet to use for a particular topic.

Python for Data Science Cheat Sheet

1.Quick Guide to learn Python for Data Science python

If you are starting to learn Python, then this cheat sheet is the best resource for you. In this cheat sheet, you will find a step-by-step guide to learn Python. It gives out resources to follow, Python libraries you must know and few helpful tips.

2.Python for Data Science Cheat sheet  python, data science

This cheat sheet by Datacamp covers all the basics of Python required for data science. If you have just started working on Python then keep this as a quick reference. Mug up these cheat codes for variables & data types functions, string operation, type conversion, lists & commonly used NumPy operations. The unique aspect of this cheat sheet is it lists down important Python libraries & gives cheat codes for selecting & importing these libraries.

3.Python For Data Science Cheat Sheet NumPy numpy, python

NumPy is a core library for scientific computing in Python. In this cheat sheet from DataCamp you will find cheat codes for creating NumPy arrays, performing mathematics operation on array, subsetting, slicing, indexing & array manipulation. The unique aspect of this cheat sheet is it gives each function has been categorized & explained in simple English.

4.Exploratory Data Analysis in Python EDA, exploratory data analysis, python

Your best resource to perform data exploration in Python using NumPy, Pandas & Matplotlib. With this cheat sheet you will learn how to load files in python, convert variables, sort data, create plots, create sample datasets, treat missing values & many more. It is one of the simplified cheat sheet on data exploration.

5.Data Exploration using Pandas in Python  pandas, python

Pandas is one of the important libraries in Python. This cheat sheet on data exploration operation in Python using Pandas is your go-to resource to know each step involved in data exploration. You will find cheat codes for reading & writing data, preview of dataframes, rename columns of dataframe, aggregate the data, etc.

6.Data Visualisation in Python data visualization, python, seaborn, numpy, scipy, pandas

Be it a data scientist or a non-techie, visualization is easily interpreted by both. In visual graphs & plots, data comes to life & speaks for itself. In this cheat sheet, learn how to perform data visualization in Python. Explore the different ways in which you can plot your data. Find step by step approach to plot histograms, bar charts, line graph, scatter plot, etc.

7.Python For Data Science Cheat Sheet Bokeh data visualization, python, bokeh

This cheat sheet on Bokeh, an interactive visualization library in Python is especially useful with large datasets. In this cheat sheet by DataCamp, you will get basic steps for plotting, renderers & visual customization, save plots & create statistical charts.

8.Cheat Sheet: Scikit Learn sklearn, python, machine learning, scikit-learn

Here is a cheat sheet on scikit-learn for each technique in Python. It provides different functions used for pre-processing, regression, classification, clustering, dimensionality reduction, model selection & metric along with their description. The unique aspect of this cheat sheet is it depicts the complete stages of machine learning.

9.Steps To Perform Text Data Cleaning in Python   python, data cleaning

Text cleaning can be a cumbersome process. And knowing the right procedures is the key to getting the desired result. Refer this cheat sheet to perform text data cleaning in Python step by step. Follow this cheat sheet to know when you remove stop words, punctuation, expressions, etc. The unique aspect of this cheat sheet is each step has been explained with codes & examples.

R for Data Science Cheat Sheets

1.R Reference Card R

Use this reference sheet for cheats codes for all functions & operators under R. Understand what the different terms mean under R. It explains all the functions under data creation, data processing, data manipulation, model function, selection and many more.

2.Data Import in R R, data import, readr, tibble, tidyr

Learn how to import data with readr, tibble and tidyr. Find functions to write & read functions in tibble. It also provides you useful arguments, reshape data, combine cells with tidyr.

3.Data Transformation with dplyr  R, data transofrmation, dplyr

This cheat sheet from RStudio is a reference material for data transformation with dplyr. Get short codes & operators for all operations under data transformation. Then be it summarize cases, group case, manipulation, vectorize & combine variables.

4.Cheat sheet – 11 Steps for Data Exploration in R (with codes) R, data exploration

This cheat sheet gives a step by step guide to  data exploration in R. Learn how to load file in R, convert variables to different data types, transpose a dataset, sort dataframe, create plots & many more.

5.Data Visualization in R   data visualization, R

Above we saw cheat sheet on data visualization in Python. Here is a data visualization cheat sheet to give the different graphs by which you can plot the data. With a few lines of code, you can create beautiful charts and data stories. R has awesome libraries to create basic and more evolved visualizations like Bar Chart, Histogram, Scatter Plot, Map visualization, Mosaic Plot and various others.

6.Data Visualization with ggplot2  R, data visualization, ggplot2

This cheat sheet is specifically for creating a visualization in R using ggplot2. ggplot2 works on the grammar of graphics and is built on a set of visual marks that represent data point. Get cheat codes to create one variable & two variable graphical component. Along with different techniques for creating plots in R.

7.Cheat sheet: Caret Package  R, caret

Caret package provides a set of functions that streamlines the process of creating predictive models. The cheat sheet includes functions for data splitting, pre-processing, feature selection, model tuning & visualization.

8.R Reference Card for Data Mining R, data mining

This cheat sheet provides functions for text mining, outlier detection, clustering, classification, social network analysis, big data, parallel computing using R. This cheat sheet gives you all the functions & operators used for data mining in R.

9.Guide to quickly learn Cloud Computing in R Programming  R, cloud computing

Cloud computing has made it very easy for us to access our files & data from anywhere. In this cheat sheet, you will learn about how to use cloud computing in R. Follow this step by step guide to use R programming on AWS.

Machine Learning Cheat Sheets

1.Cheat sheet – Python & R codes for common Machine Learning Algorithmsmachine learning, R, Python

In this cheat sheet, you will get codes in Python & R for various commonly used machine learning algorithms. The algorithms included are Linear regression, logistics regression, decision tree, SVM, Naive Bayes, KNN, K-means, random forest & few others.

2.Scikit Learn algorithm Cheat sheet  scikit-learn, sklearn

This cheat sheet is provided from the official makers of scikit-learn. Many people face the problem of choosing a particular machine learning algorithm for different data types & problems. With the help of this cheat sheet, you have the complete flow for solving a machine learning problem.

3.Microsoft Azure Machine Learning: Algorithm Cheat Sheet microsoft azure, azure, machine learning

This cheat sheet helps you choose the best Azure Machine Learning Studio algorithm for your predictive analytics solution. Developed by Microsoft Azure team itself cheat sheet gives you a clear path as per the nature of the data.

Probability Cheat Sheets

1.Probability Basics  Cheat Sheet statistics, probability

This cheat sheet provides you a comprehensive reference material for probability & statistics. Each concept has been explained marvelously with a diagrammatical explanation. It covers from the basic probability rules to advanced statistical concepts in a very precise & accurate manner. Developed by the University of Pennsylvania, it is one of the most comprehensive cheat sheets you can lay your hands on.

2.Probability cheat sheet for distribution statistics, probability, distributuion, probability distributiion function, pdf

Refer this cheat sheet for a quick overview on Poisson Distribution, Normal distribution, Binomial Distribution, Geometric Distribution and many more. It gives notation, formulas & a brief explanation in simple English for each distribution.

SQL and My SQL Cheat Sheets

1.SQL Cheat Sheet SQL, sql

In this cheat sheet, learn how to perform basic operations in SQL. Get function for inserting data, update data, deleting data, grouping data, order data, etc. If you have started using SQL this the best reference guide.

2.MySQL & SQL Cheat Sheet  sql, mysql

In this cheat sheet, you will find commonly used MySQL & SQL commands. Get cheat codes for MySQL mathematical function, MySQL string function, basic MySQL commands. You will also find SQL commands for modifying & querying.

Big Data Cheat Sheets

1.Hadoop Cheat sheet hadoop, big data

It is rightly said Hadoop has a vast ecosystem & includes various operations. Learn about the various operators, how they work & what operation they are responsible for. The cheat sheet has been broken down into a respective general function like distributed systems, processing data, getting data in/out & administration.

2.Apache Spark Cheat sheet  apache spark, spark, big data, rdd

Here is a cheat sheet for Apache Spark for various operations like transformation, actions, persistence methods, additional transformation & actions, extended RDD, streaming transformation, RDD persistence, etc.

3.Hive Function Cheat Sheet hive, big data

In this cheat sheet, get commands for Hive functions. It provides cheat codes for data functions, mathematical function, string function, collection function, built-in aggregate function, built-in table generating function, conditional function and functions for text analytics.


I hope you enjoyed reading this article. If I have missed out any cheat sheet which you think should be included in the list. Then post them in the comments section. The other reader & I would like to know about them.

If you have any suggestions/feedback then don’t forget to share it by dropping in your comments. Tell us what more cheat sheets you would like us to publish.

Learn, compete, hack and get hired!

avcontentteam 11 Dec 2023

Frequently Asked Questions

Lorem ipsum dolor sit amet, consectetur adipiscing elit,

Responses From Readers


Shortt 17 Feb, 2017

HTML cheat sheet

Virat 17 Feb, 2017

Thanks Swati, these are really helpful!

rob van putten
rob van putten 17 Feb, 2017

It's already getting old.. tensorflow will be in higher demand than scikit-learn..

Aman Sinha
Aman Sinha 17 Feb, 2017

This is great! Thanks.

Alfredo 18 Feb, 2017

Very, very nice and useful ... Thankyou!!!

Carlos 19 Feb, 2017

Dude, this was one of the most helpful tool for those who works with data! This is so handy! Smart is not who has all answers, but who can find them where they are... Tks a lot. Carlos

Ganesh Verma
Ganesh Verma 19 Feb, 2017

Amazing guys! Genuinely I needed them. All the best and Thanks a lot :)

Srinivas 19 Feb, 2017

Very useful, awesome work Swathi.

Lokesh Sharma
Lokesh Sharma 19 Feb, 2017

Great work!

Prashant Kumar Mehta
Prashant Kumar Mehta 21 Feb, 2017

Thanks Swati ..really needed the probability cheatsheet

shan4224 21 Feb, 2017

Nice compilation. How about adding SAS sheet in it.. Thanks for the effort .

Viswaprakash91 21 Feb, 2017

These are some amazing stuffs..really helpful for beginners. A big thank you :)

Jinson Fernandez
Jinson Fernandez 26 Feb, 2017

awwsumm stuff.......its a one-stop-shop for cheat sheets

Deepak Jha
Deepak Jha 02 Apr, 2017

Great job for freshers. Thank you.

sampath 21 Apr, 2017

Hi Swati, Very good article. Most of the things put to together. I would like to add sparklyr and pyspark cheatsheet to the list. Regards, Sampath.

Datta Tele
Datta Tele 23 Apr, 2017

Excellently simplified in one page!

Amit Kumar Kashyap
Amit Kumar Kashyap 17 May, 2017

Great post !!! This is really helpful. Thanks a ton Swati. 21 Jul, 2017

Once a complete bus stuffed with Guatemalans laughed with glee when I compelled our driver to cease so I might urgently pee on the aspect of the road. Returning to the bus and laughing with them gave me new buddies for the remainder of the journey.

best lawn mower for hills 2015
best lawn mower for hills 2015 29 Aug, 2017

Thank you for the auspicious writeup. It if truth be told was once a entertainment account it. Glance complex to more delivered agreeable from you! However, how could we be in contact?

Zero Up 2 Review
Zero Up 2 Review 31 Aug, 2017

Want to share IMDb's rating on your own site?

piala dunia 2018
piala dunia 2018 01 Sep, 2017

I'm not certɑin the place yߋu aaгe getting your info, but great topiс. I must spend a whіle ⅼearning mοrе or understanding more. Thank you for excellent information I was on the loօkout for this information for myy mission. 01 Sep, 2017

It's ttһe best time to make some plans for the future and it's time to be happy. I've read this ⲣost andd if I could I want to suɡgest you some interesting things oгr suggestions. Maybe you could write next artiϲles referring to this artiсle. I ᴡaԛnt to read even more things about it! 29 Sep, 2017

Hi, after reading this remarkable paгagraph i am as well glad to share my experience here with mates.

Ashish Patel
Ashish Patel 02 Oct, 2017

This is amazing Article about learning.It's Helpful to flush knowledge or basic of data science and programming.

Dionysis 07 Oct, 2017

Great job!!! Thank you !!

authentic mlb jerseys
authentic mlb jerseys 08 Oct, 2017

Pretty! This has been an incredibly wonderful article. Many thanks for supplying these details.authentic mlb jerseys

discount mlb jerseys China
discount mlb jerseys China 08 Oct, 2017

There's certainly a great deal to learn about this issue. I like all of the points you have mlb jerseys China

sherenelbooz 10 Oct, 2017

great post i hope all the best for you all thanks 17 Oct, 2017

Wonderful, what a website it is! This blog provides useful data to us, keep it up.

cheap nfl jerseys
cheap nfl jerseys 31 Oct, 2017

It's awesome designed for me to have a web page, which is useful designed for my experience. thanks admincheap nfl jerseys

blogilates 8 week hot body
blogilates 8 week hot body 18 Dec, 2017

Those we reference as the "Masters" are revered because of their masterpiece works, who have endured throughout the ages. A small number of you may be confused at this point about how precisely my outwards bound links became inward bound links without other action. So to wrap things up to find your voice and get together by having an audience you should do three simple things.

Danny Moore
Danny Moore 06 Feb, 2018

Thanks for sharing. Very helpful. Folks like references for quick learning as they mature their competencies.

Hanu 20 Mar, 2018

One page solution to All my headaches to start my journey wit data analysus. Tq

Tushar 05 Apr, 2018

One of the best article, I have come across.

Sanjeev kumar
Sanjeev kumar 07 Apr, 2018

This is great . Keep on writing . Data Science community is thankful to you

Shailesh 10 Apr, 2018

This is the best compilation of cheatsheets for Data Science I've ever found. Thank you so much Swati!

Sarupyo Chatterjee
Sarupyo Chatterjee 26 Jan, 2022

Some of the Cheat Sheets are not downloadable and asking for a request, please give access to the materials. Thank you.

Dhiraj 23 Aug, 2022

Thanks a lot to the analyticsvidhya team for posting such great article with huge information which is the key of every beginner for clearing interviews as a data scientist Thanks a lot .