Skip to content

Commit

Permalink
Merge pull request #257 from marco-cardoso/headers-titles-fix
Browse files Browse the repository at this point in the history
Fixing the title of the headers - extreme values/variables
  • Loading branch information
sbrugman authored Dec 19, 2019
2 parents 1f59f8e + 1222368 commit 9e09a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pandas_profiling/view/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def render_variables_section(stats_object: dict) -> str:
max_number_to_print=n_freq_table_max,
)

formatted_values['n_extreme_obs'] = n_extreme_obs
formatted_values["firstn_expanded"] = extreme_obs_table(
freqtable=stats_object["variables"][idx]["value_counts_without_nan"],
number_to_print=n_extreme_obs,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p class="h4">Minimum 5 values</p>
<p class="h4">Minimum {{values['n_extreme_obs']}} values</p>
{{ values['firstn_expanded'] }}

<p class="h4">Maximum 5 values</p>
<p class="h4">Maximum {{values['n_extreme_obs']}} values</p>
{{ values['lastn_expanded'] }}

0 comments on commit 9e09a8d

Please sign in to comment.