Posts from Python

How to convert a datetime object to only a string of date in Python

By Varun Bhattacharya

Hello programmers, in this tutorial we will see how to convert a DateTime object to only a string of data in Python. Often programmers need the date and time from the program. For .... Read More

Flatten an irregular or arbitrarily nested list of lists in Python

By Varun Bhattacharya

Hello programmers, in this tutorial we will see how to flatten an irregular nested list of lists in Python. A list enclosing more than one or more lists within itself is called a n.... Read More

Get the current date and time in every possible format in Python

By Varun Bhattacharya

Hello programmers, in this tutorial we will see how to get the current date and time in Python. Often developers, need to use the current date and time for various manipulations. T.... Read More

random.sample() vs random.choice() in Python

By Karshin Uppal

Here in this tutorial, we will learn about the difference between random.sample() and random.choice() functions. The random module is used to shuffle values, generate some random d.... Read More

Arrow module in Python

By Vivek Bisht

Arrow is a library in a Python programming language that is used for manipulating, creating, formatting, and for converting dates, times, timestamps, etc. It is used to update and .... Read More

Create a Line Chart using vincent in Python

By Vivek Bisht

In this tutorial, we will create a line with the help of vincent in Python. It is a type of library in Python. But if you don’t have vincent then first you have to install it.... Read More

if-elif-else statement in one single line in Python

By SAHITHI NIHARIKA TALAGAPU

Writing if-elif-else in multiple lines is old fashion. Everyone will write, so how about writing it in a single line. In this tutorial, we learn how to write if-elif-else statement.... Read More

LEFT ANTI join under some matching condition in Pandas

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to join LEFT ANTI join under some matching conditions in Pandas Python. LEFT ANTI join is a part of data that is only present.... Read More

Related Posts