Change figure size in Pandas - Python Last Updated : 11 Dec, 2020 Comments Improve Suggest changes Like Article Like Report Prerequisites: Pandas The size of a plot can be modified by passing required dimensions as a tuple to the figsize parameter of the plot() method. it is used to determine the size of a figure object. Syntax: figsize=(width, height) Where dimensions should be given in inches. ApproachImport pandas.Create or load dataCall the plot() function with a figsize parameter along with dimensions. Example 1 Python3 import pandas as pd # import the pandas module # python list of numbers data1 = [10, 20, 50, 30, 15] # convert the list to a pandas series s1 = pd.Series(data1) # creates a figure of size 20 inches wide and 10 inches high s1.plot(figsize=(20, 10)) Output: Example 2 Python3 # import the pandas module import pandas as pd # Creating a pandas dataframe df = pd.DataFrame({'names': ['A', 'B', 'C', 'D'], 'val': [10, 45, 30, 20]}) # creates a bar graph of size 15 inches wide and 10 inches high df.plot.bar(x='names', y='val', rot=0, figsize=(15, 10)) Output : Example 3 Python3 # import the pandas module import pandas as pd # Creating a pandas dataframe with index df = pd.DataFrame({'value': [3.330, 4.87, 5.97]}, index=['Item 1', 'Item 2', 'Item 3']) df.plot.pie(y='value', figsize=(5, 5)) Output : Comment More infoAdvertise with us Next Article Change figure size in Pandas - Python winstonpaisarsenal Follow Improve Article Tags : Python Python-pandas Python pandas-plotting Practice Tags : python Similar Reads How to change figure size in Plotly in Python In this article, we will discuss how we can change the figure size in Plotly in Python. Let's firstly take about Plotly in Python. Plotly  Python library provides us with an interactive open-source Plotly library that can support over 40 unique chart types that cover a wide list of statistical, fin 4 min read Python | Pandas Index.size Pandas Index is an immutable ndarray implementing an ordered, sliceable set. It is the basic object which stores the axis labels for all pandas objects. Pandas Index.size attribute return the number of elements in the underlying data of the given Index object. Syntax: Index.size Parameter : None Ret 2 min read Pandas.set_option() function in Python Pandas have an options system that lets you customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to set the value of a specified option. set_option() Syntax : pandas.set_option(pat, value) Parameters : pat : Regexp which should 2 min read Python - Change legend size in Plotly chart The data on the graph's Y-axis, also known as the graph series, is reflected in the legend of the graph. This is the information that comes from the columns of the relevant grid report, and it usually consists of metrics. A graph legend is usually displayed as a box on the right or left side of your 2 min read Pandas Cheat Sheet for Data Science in Python Pandas is a powerful and versatile library that allows you to work with data in Python. It offers a range of features and functions that make data analysis fast, easy, and efficient. Whether you are a data scientist, analyst, or engineer, Pandas can help you handle large datasets, perform complex op 15+ min read Change plot size in Matplotlib - Python Plots are an effective way of visually representing data and summarizing it beautifully. However, if not plotted efficiently it seems appears complicated. Python's Matplotlib provides several libraries for data representation. While making a plot we need to optimize its size. In this article, we wil 3 min read Python | Pandas dataframe.info() When working with data in Python understanding the structure and content of our dataset is important. The dataframe.info() method in Pandas helps us in providing a concise summary of our DataFrame and it quickly assesses its structure, identify issues like missing values and optimize memory usage.Ke 2 min read Python | Pandas Series.itemsize Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas series is a One-dimensional ndarray with axis labels. The labels need not be un 2 min read Pandas.reset_option() function in Python Pandas have an options system that lets us customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to reset the value of a specified option back to its default value. reset_option() Syntax : pandas.reset_option(pat) Parameters : 2 min read Like