File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -640,15 +640,15 @@ \section*{Instructions}
640
640
Write a class called \texttt {Komparator } whose constructor takes as an argument a pandas.DataFrame which contains the dataset.
641
641
The class must implement the following methods, which take as input two variable names:
642
642
\begin {itemize }
643
- \item \texttt {compare\_ box\_ plots(categorical\_ var, numerical\_ var) }: displays a series of box plots
643
+ \item \texttt {compare\_ box\_ plots(self, categorical\_ var, numerical\_ var) }: displays a series of box plots
644
644
to compare how the distribution of the numerical variable changes if we only consider
645
645
the subpopulation which belongs to each category.
646
646
There should be as many box plots as categories.
647
647
For example, with Sex and Height, we would compare
648
648
the height distributions of men vs. women with two box plots.
649
- \item \texttt {density(categorical\_ var, numerical\_ var) }: displays the density of the numerical variable.
649
+ \item \texttt {density(self, categorical\_ var, numerical\_ var) }: displays the density of the numerical variable.
650
650
Each subpopulation should be represented by a separate curve on the graph.
651
- \item \texttt {compare\_ histograms(categorical\_ var, numerical\_ var) }: plots the numerical variable in a separate histogram for each category.
651
+ \item \texttt {compare\_ histograms(self, categorical\_ var, numerical\_ var) }: plots the numerical variable in a separate histogram for each category.
652
652
As an extra, you can use overlapping histograms with a color code.
653
653
\end {itemize }
654
654
You can’t perform that action at this time.
0 commit comments