pandas.DataFrame.astype() Function example in python

pandas.DataFrame.astype(): This function cast a pandas object to a specified dtype dtype. Syntax: DataFrame.astype(dtype, copy=True, errors=’raise’,…

Python datetime,timedelta,strftime functions with examples

In this article, we will discuss about python datetime functions with examples. You can also how…

How to get the current date and time in python ?

In this tutorial, you will learn how to write a program to get the current date…

Difference between append and extend in list in python

Before going further, we need to run one example on this, we can get to know…

range() vs xrange() in Python, Which one is best ? with example

In this tutorial, you will know about range() vs xrange() in python. First understand basic definition…

How to concatenate two lists in Python?

In this tutorial, you will learn how to concatenate two lists in Python? #program example Output:…

How do I check if a list is empty?

In this article, you will how do I check if a list is empty? #example program…

Python list: How can I replace certain items of the list?

In this tutorial, you will learn how to replace certain items of the list? Output: [crayon-5cbcd36e6039f863982094/] If…

Top 20 python libraries for machine learning and deep learning

In this article, you will learn about Top 20 python libraries for machine learning and data science.…

2 ways to sort a dictionary in python by values or keys

In this tutorial, You will learn how to sort a dictionary in python by values or…