# About plotly bar for large dataframe

**URL:** <https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981>\
**Category:** 📊 Plotly Python\
**Created:** [June 10, 2022, 4:25am UTC](https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981 "2022-06-10T04:25:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_ak-18](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@Anand\_ak-18](https://community.plotly.com/u/Anand_ak-18)\
**Post date:** [June 10, 2022, 4:25am UTC](https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981/1 "2022-06-10T04:25:18Z")

</div>

hello, im using a large dataframe of 1.13 million rows, after applying the plotly express barplot, the data is not displaying, kindly help me to proceed further

piec=px.bar(data\_frame=df,x=‘month’,y=‘total\_amount’)

---

<div class="post-metadata">

**Author:** ![jlfsjunior](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jlfsjunior/32/16061_2.png) [@jlfsjunior](https://community.plotly.com/u/jlfsjunior)\
**Post date:** [June 14, 2022, 6:55am UTC](https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981/2 "2022-06-14T06:55:50Z")

</div>

Hi,

Welcome to the community! 🙂

A few suggestions in order to make it easier for us to help you:

1. Have you tried to use a smaller subset of data (like `df.head(10)`)?
2. Could you provide a very small sample of the dataframe, so we can what are the columns, dtypes and so on…?

---

<div class="post-metadata">

**Author:** ![Anand\_ak-18](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@Anand\_ak-18](https://community.plotly.com/u/Anand_ak-18)\
**Post date:** [June 16, 2022, 9:14am UTC](https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981/3 "2022-06-16T09:14:18Z")

</div>

![barchart](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/0/0/002d33513ae6d2faeb7afc7981cfef21fb1b600c.png)  
 ![dataframe info](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/e/2/e2679289f057abab37223ecdb92a01e6c10f6abb.png)  
 ![first 1000 column](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/9/9/99848e7f9d47693249f453e0bb10c9361b0d6e4c.png)  
 ![script](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/6/d6b70c8f84c6f824489da676a08eb1933a0df797.png)

Hello Thanks for the reply, I have sorted it out by using the groupby function, the original dataframe is fading out when we increase the no of columns in the orginal data frame attached the screenshots for reference

---

<div class="post-metadata">

**Author:** ![Anand\_ak-18](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@Anand\_ak-18](https://community.plotly.com/u/Anand_ak-18)\
**Post date:** [June 16, 2022, 9:15am UTC](https://community.plotly.com/t/about-plotly-bar-for-large-dataframe/64981/4 "2022-06-16T09:15:36Z")

</div>

sry the bar chart is fading out when we increase the no of rows not the columns
