Jan-30-2023, 11:09 AM
I have a pandas dataframe that has 2 columns
![[Image: input.png]](https://i.postimg.cc/C1qXsKC6/input.png)
,And I want to create a new dataframe with column names: lowest, highest, count, and amount. The lowest and highest columns represent the range. The count column represents the number of values coming in the particular range, and the amount column represents the total of the values in the particular range.
![[Image: output.png]](https://i.postimg.cc/nLkCcH9g/output.png)
And is it possible that we save that dataframe as an Excel file, and we can change the lowest and highest values in excel files according to our needs, while other values automatically get calculated.
![[Image: input.png]](https://i.postimg.cc/C1qXsKC6/input.png)
,And I want to create a new dataframe with column names: lowest, highest, count, and amount. The lowest and highest columns represent the range. The count column represents the number of values coming in the particular range, and the amount column represents the total of the values in the particular range.
![[Image: output.png]](https://i.postimg.cc/nLkCcH9g/output.png)
And is it possible that we save that dataframe as an Excel file, and we can change the lowest and highest values in excel files according to our needs, while other values automatically get calculated.