We’ll learn how to delete a folder or directory in Python in this post. We’ll delete an empty folder as well as delete a directory and all files from it using shutil module.
Category: Python Tutorials
This page will have all tutorials which are related to python 3.

Read CSV file Using Numpy
I’ll show you how to read a csv file and convert it into a NumPy array in this post. We’ll write NumPy data to a CSV file. The CSV file will then be read and transformed to a Numpy array. I’ll show you how to read a CSV file using both numpy.loadtxt() and numpy.genfromtxt() methods. […]

Deleting a File If It Exists in Python
In this article, we’ll learn how to delete a file if it exists using Python. We’ll explore the use of use os.remove() and os.unlink method to remove a file if it’s the only one that exists at the specified location.

Readline(): Python Read File Line By Line
in this post, I’ll show you Reading a file using deadline() python method. The readline() is a built-in file method that helps read one complete line from the given file.

Python reduce() Function With Example
in this post, we’ll see how to use reduce() function in python to process a list. This function is used to apply a function to all of the list elements that is supplied as an argument. This function is defined under “functools” module.

How to Filter a List in Python
This tutorial help to filter list items based on condition. We’ll learn different ways to filter list items in python.

How to Concatenate Two List in Python
in this tutorial, We’ll concatenate two lists in python in different ways.We’ll learn how to concatenate lists using ‘+’, ‘*’, extend() etc.

How To Concatenate Pandas DataFrames
in this pandas tutorials, We’ll learn how to Concatenate two or more Data Frames. The concat() method help to combines Data Frames across rows or columns in pandas.

Read CSV File Using Pandas read_csv()
This tutorial helps to read CSV file using pandas. We’ll use the pandas read_csv() method to read CSV file content. Pandas is the most popular data manipulation package in Python.

How to Export Pandas DataFrame to CSV
in this python tutorial, I’ll share the python script to export dataframe into CSV format. Pandas is an open-source library that is built on top of the NumPy library.