Commit 07289079 authored by Aleksandra Mnich's avatar Aleksandra Mnich
Browse files

[SIGMON-371] format(precision=) not supported by pandas 1.2.2

parent d5b42c0a
Pipeline #4129150 failed with stages
in 7 minutes and 30 seconds
......@@ -286,16 +286,16 @@ class QuenchHeaterVoltageCurrentAnalysis(QuenchHeaterVoltageAnalysis):
row_color_dct = {False: 'background-color: red', True: '', np.nan: ''}
display_html(first_last_u_comp_df.style.set_table_attributes("style='display:inline'").set_caption(
'Comparison of the inititial and final voltage').apply(
lambda s: first_last_u_comp_df['result'].map(row_color_dct)).format(precision=1).to_html() +
lambda s: first_last_u_comp_df['result'].map(row_color_dct)).set_precision(1).to_html() +
first_r_comp_df.style.set_table_attributes("style='display:inline'").set_caption(
'Comparison of the initial resistance to the reference').apply(
lambda s: first_r_comp_df['result'].map(row_color_dct)).format(precision=2).to_html() +
lambda s: first_r_comp_df['result'].map(row_color_dct)).set_precision(2).to_html() +
tau_comp_df.style.set_table_attributes("style='display:inline'").set_caption(
'Comparison of the discharge characteristic time to the reference').apply(
lambda s: tau_comp_df['result'].map(row_color_dct)).format(precision=3).to_html() +
lambda s: tau_comp_df['result'].map(row_color_dct)).set_precision(3).to_html() +
capacitance_comp_df.style.set_table_attributes("style='display:inline'").set_caption(
'Comparison of the estimated capacitance to the reference').apply(
lambda s: capacitance_comp_df['result'].map(row_color_dct)).format(precision=3).to_html(),
lambda s: capacitance_comp_df['result'].map(row_color_dct)).set_precision(3).to_html(),
raw=True)
@staticmethod
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment