A
A
Alexey R2020-02-26 13:28:18
Python
Alexey R, 2020-02-26 13:28:18

How to align a string by maximum value in Pandas?

Good afternoon. Colleagues, please tell me how to align a string by the maximum content value in Pandas.DataFrame? There are 2 excel files. I compare them in a certain way, remove duplicates and so on. At the moment, everything seems to be done, the script works. The data is in a DataFrame which I save using the .to_exel method to an Excel file. But the final conclusion is not at all encouraging. The generated file is "worse than nuclear war" (Auto.xlsx). I tried to experiment with pd.set_option and pd.option_context, but as I understand it, they only affect the output of data from the monitor directly to the IDE. How to make the alignment of the column according to the maximum content of the cell automatically. And also color the lines according to the condition? How to eat Auto.png 5e564804bd82e706752555.png and how I want it to turn out Auto (Ideal).png 5e5648168dce3235476196.png
Link to files " https://drive.google.com/open?id=1cgtsq1itii3xwYRh... ">

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question