Home »
Python »
Python Programs
Where is pandas.tools?
Learn about the concept of pandas.tools?
By Pranit Sharma Last updated : October 05, 2023
Pandas is a special tool that allows us to perform complex manipulations of data effectively and efficiently. Inside pandas, we mostly deal with a dataset in the form of DataFrame. DataFrames are 2-dimensional data structures in pandas. DataFrames consist of rows, columns, and data.
pandas.tools
When we install Pandas, we load the Pandas tools module this Pandas tools module is used for plotting different types of visualization plots.
Hence for some kinds of plots, we need to import pandas.tools.plotting.
But if we try to import pandas.tools.plotting, it will raise an error that says that there is no module named pandas.tools.
This is because pandas.tools.plotting was changed to pandas.plotting after the Pandas version 0.20.0.
Python program to demonstrate the use of pandas.tools
# Importing pandas package
import pandas as pd
# Importing pandas tools plotting
import pandas.tools.plotting
Output:
# Importing pandas package
import pandas as pd
# Importing pandas tools plotting
import pandas.plotting
print("Successfully imported")
Output:
Python Pandas Programs »