Featured Posts
Recent Posts
Python Realtime Plotting | Matplotlib Tutorial | Chapter 9
By Udit Vashisht

Python Realtime Plotting in Matplotlib

Python Realtime Plotting | Chapter 9

In this tutorial, we will learn to plot live data in python using matplotlib. In the beginning, we will be plotting realtime data from a local script and later on we will create a python live plot from an automatically updating csv file. The csv file will be created and updated using an api. So, in the later part of this tutorial we will be creating ...

Read More
Scatter Plotting in Python | Matplotlib Tutorial | Chapter 7
By Udit Vashisht

Scatter Plots in Python using Matplotlib

Scatter Plotting in Python |Chapter 7

In this tutorial we will learn everything about plotting a scatter plot in Matplotlib using Python. We will be using matplotlib.pyplot()’s plt.scatter() to create the scatter plot in Matplotlib. You will find all the scatter plot’s python example codes in this tutorial.

Scatter Plotting

Scatter Plotting also known as scatter plots graph, scatter graphs, scatter chart, scatter diagram is used to show ...

Read More
Matplotlib Tutorial in Python | Chapter 1 | Introduction
By Udit Vashisht

Matplotlib Tutorial in Python

Chapter 1 | Introduction

In this series of Matplotlib Tutorials in Python, we will cover all concepts of matplotlib from beginners to expert. Starting with how to install Matplotlib to how to create matplotlib plots, this series is the only matplotlib tutorial which you will need.

Matplotlib - Introduction

Matplolib is a plotting library which is used to generate 2D figures/graphs from data in Python. Matplolib is extensively used in data sciences ...

Read More
If __name__ == '__main__' in Python
By Udit Vashisht

What does if __name__ == ‘__main__‘in python means?

In python, you must have come accross the following code :-

if __name__ == '__main__': main() 

In this tutorial, we will learn in detail what does the above statement means. As per official documentation:

‘__main__‘ is the name of the scope in which top-level code executes. A module‚Äôs __name__ is set equal to ‘__main__‘ when read from standard input, a script, or from an interactive prompt.

It means that if ...

Read More
Set Passwords and Secret Keys in Environment Variables (Mac/Linux/Windows) - Python Quicktip
By Udit Vashisht

Hide Passwords and Secret Keys in Environment Variables

If you are into python , there is a fair chance that you would have contributed to open-source or had your code snippets/projects on Github or BitBucket.Some time your code involves some important credentials like passwords or secret keys etc. like the code for our post on how to send emails using python uses google/app password. You surely do not want to hard code the password in your ...

Read More
Use Python to send email using SMTP
By Udit Vashisht

Use Python to send emails

In this tutorial, we will learn to use python to send emails. If you are new to python, you can see our beginner’s series. In case you are having trouble installing Python, you can see our posts on installing python on MacOS and Windows.

We will start with sending plain email using python and then learn to send advanced automated emails, HTML emails, emails with attachments etc. In this tutorial, we ...

Read More
Convert JSON to CSV using Python
By Udit Vashisht

JSON to CSV in Python

Converting large JSON files to CSV could be a difficult task. But python is a powerhouse and it has lots of built-in and third party modules which make data processing a lot easier. You can read/write/parse large json files, csv files, dataframes, excel, pdf and many other file-types.

Recently, while helping out a friend, I came across a set of large Json data files from which a CSV file ...

Read More
Python Tutorial for Beginners
By Udit Vashisht

Python Tutorial for Beginners

Have you heard a lot about Python Language? Are you looking for free and reliable resource to learn Python? If Yes, your search for the Best Python Tutorial is over.

We are excited to bring an exhaustive Python tutorial for a complete beginner. Even if you do not have any or very less experience in programming, by the end of this series you will be having a strong grasp on the basics of Python.

...

Read More