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}
640640Write a class called \texttt {Komparator } whose constructor takes as an argument a pandas.DataFrame which contains the dataset.
641641The class must implement the following methods, which take as input two variable names:
642642\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
644644 to compare how the distribution of the numerical variable changes if we only consider
645645 the subpopulation which belongs to each category.
646646 There should be as many box plots as categories.
647647 For example, with Sex and Height, we would compare
648648 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.
650650 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.
652652 As an extra, you can use overlapping histograms with a color code.
653653\end {itemize }
654654
You can’t perform that action at this time.
0 commit comments