Skip to content

Commit a8f6244

Browse files
authored
added self to the Python04ex07 Komparator (#214)
1 parent 45ed683 commit a8f6244

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module04/subject/en.subject.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,15 +640,15 @@ \section*{Instructions}
640640
Write a class called \texttt{Komparator} whose constructor takes as an argument a pandas.DataFrame which contains the dataset.
641641
The 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

0 commit comments

Comments
 (0)