Pierian Blog

Python Basics, Tutorials

Matplotlib Tutorial: How to Move the Matplotlib Legend

Introduction Matplotlib is a powerful Python library used for data visualization. It allows you to create various types of plots, such as line plots, scatter plots, bar plots, and more. One key feature of Matplotlib is the ability to add a legend to your plot. A legend provides important information about the data being visualized, […]

Python Basics, Tutorials

Python Asyncio Tutorial

Introduction Asynchronous programming is an essential part of modern software development. It enables us to write concurrent code that can handle many input/output operations without blocking the execution of other tasks. Python provides a robust and efficient way of writing asynchronous code with asyncio. Asyncio is a library in Python that allows you to write […]

Python Basics, Tutorials

Tutorial: How to Normalize Data in Python

Introduction Data normalization is a crucial step in data preprocessing for machine learning models. It involves transforming numerical data into a standard format, which helps in improving the accuracy of the models. Normalization scales the values of the features to a range between 0 and 1 or -1 and 1, making them easier to compare […]

Python Basics, Tutorials

Python Tutorial: How to Compare Dates in Python

Introduction Dates are an essential part of any data analysis or processing task. Comparing dates is a common operation that is often performed in Python programs. Whether you are working on a simple project or a complex data analysis task, being able to compare dates accurately is crucial. In Python, there are several ways to […]

Python Basics, Tutorials

Python Tutorial: How to Export and Save a Seaborn Plot

Introduction Python is a versatile programming language that is widely used in data science and visualization. One of the popular visualization libraries in Python is Seaborn, which provides an easy-to-use interface to create beautiful and informative plots. Once you have created a plot using Seaborn, you may want to export and save it for further […]

Python Basics, Tutorials

Interview Prep: Python Pandas Interview Questions

Introduction Pandas is a popular Python library used for data manipulation and analysis. It provides various tools for data cleaning, shaping, merging, and grouping. Pandas can handle different types of data such as CSV files, Excel sheets, SQL databases, and more. If you are preparing for a Python pandas interview, here are some concepts that […]

Python Basics, Tutorials

Git Tutorial: Git Empty Commit

Introduction In Git, a commit is a snapshot of changes made to a file or set of files. However, there may be situations where you need to make a commit without actually changing any files. This is where an empty commit comes in handy. An empty commit is a commit that has no changes to […]

Python Basics, Tutorials

Git Tutorial: Git Revert Multiple Commits

Introduction Git is a popular version control system that allows developers to track changes to their code over time. One of the key features of Git is the ability to revert changes made to the codebase. Reverting changes means undoing one or more commits that have already been pushed to the repository. Git revert is […]

Tutorials

Git Tutorial: Undo Git Commit Ammend

Introduction Have you ever made a mistake while committing changes to your Git repository and wished you could undo it? Or maybe you forgot to include some important changes in your last commit and want to amend it without creating a new commit? Fortunately, Git provides several ways to undo or amend commits, and in […]