More from Huy Pham: Page 8

Python Lambda Function with Examples – Data Analysis
Python

Python Lambda Function with Examples – Data Analysis

This article covers detailed explanation of lambda function of Python. You will learn how to use it in real-world data scenarios with examples. Introduction : Lambda Function In non-technical language, lambda is an alternative way of defining function. You can define function inline using lambda. It means you can apply a function to some data […]

Understand Loops in Python With Examples – Data Analysis
Python

Understand Loops in Python With Examples – Data Analysis

This tutorial covers various ways to use loops in python with several practical examples. After reading this tutorial, you will be familiar with the concept of loops and will be able to apply them in real-world scenarios for data analysis. What is Loop? Loop is used to repeat a particular task multiple times until a […]

NumPy Tutorial with Exercises – Data Analysis
Python

NumPy Tutorial with Exercises – Data Analysis

NumPy (acronym for ‘Numerical Python’ or ‘Numeric Python’) is one of the most essential package for speedy mathematical computation on arrays and matrices in Python. It is also quite useful while dealing with multi-dimensional data. It is a blessing for integrating C, C++ and FORTRAN tools. It also provides numerous functions for Fourier transform (FT) […]

Python DateTime Functions – Data Analysis
Python

Python DateTime Functions – Data Analysis

In this tutorial, we will cover python datetime module and how it is used to handle date, time and datetime formatted columns (variables). It includes various practical examples which would help you to gain confidence in dealing dates and times with python functions. In general, Date types columns are not easy to manipulate as it […]

String Functions in Python with Examples – Data Analysis
Python

String Functions in Python with Examples – Data Analysis

This tutorial explains various string (character) functions used in Python, with examples. To manipulate strings and character values, python has several in-built functions. It means you don’t need to import or have dependency on any external package to deal with string data type in Python. It’s one of the advantage of using Python over other […]

How to use variable in a query in pandas – Data Analysis
Python

How to use variable in a query in pandas – Data Analysis

Suppose you want to reference a variable in a query in pandas package in Python. This seems to be a straightforward task but it becomes daunting sometimes. Let’s discuss it with examples in the article below. Let’s create a sample dataframe having 3 columns and 4 rows. This dataframe is used for demonstration purpose. Filter […]

How to rename columns in Pandas Dataframe – Data Analysis
Python

How to rename columns in Pandas Dataframe – Data Analysis

In this tutorial, we will cover various methods to rename columns in pandas dataframe in Python. Renaming or changing the names of columns is one of the most common data wrangling task. If you are not from programming background and worked only in Excel Spreadsheets in the past you might feel it not so easy […]

How to Drop Columns from Pandas Dataframe – Data Analysis
Python

How to Drop Columns from Pandas Dataframe – Data Analysis

In this tutorial, we will cover how to remove one or more columns from a pandas dataframe. Pandas is a python package that has several functions for data analysis. Syntax to Drop Columns In pandas, drop( ) function is used to remove column(s) from a pandas dataframe. axis=1 tells Python that you want to apply […]

10 Ways to Filter Pandas DataFrame – Data Analysis
Python

10 Ways to Filter Pandas DataFrame – Data Analysis

dataframe: Replace this with the name of the pandas DataFrame you want to filter. Examples Basic Example Multiple Conditions Using Variables Import Data Make sure pandas package is already installed before submitting the following code. You can check it by running !pip show pandas statement in Ipython console. If it is not installed, you can […]

Learn Pandas Tutorial with 50 Examples – Data Analysis
Python

Learn Pandas Tutorial with 50 Examples – Data Analysis

Pandas is a popular Python package for data analysis. It is strong and flexible and helps with data cleaning and wrangling tasks. This tutorial explains how to handle various data analysis tasks using pandas package, along with examples. What is pandas package? The Pandas package has many functions which are the essence for data handling […]