Skip to content

Commit fd42208

Browse files
committed
fix: add self to the prototype of functions
1 parent a8f6244 commit fd42208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

module04/subject/en.subject.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ \section*{Instructions}
165165
% ---------------------------------- %
166166
Write a class named \texttt{FileLoader} which implements the following methods:
167167
\begin{itemize}
168-
\item \texttt{load(path)}: takes as an argument the file path of the dataset to load,
168+
\item \texttt{load(self, path)}: takes as an argument the file path of the dataset to load,
169169
displays a message specifying the dimensions of the dataset (e.g. 340 x 500)
170170
and returns the dataset loaded as a pandas.DataFrame.
171-
\item \texttt{display(df, n)}: takes a pandas.DataFrame and an integer as arguments,
171+
\item \texttt{display(self, df, n)}: takes a pandas.DataFrame and an integer as arguments,
172172
displays the first n rows of the dataset if n is positive, or the last n rows if n is negative.
173173
\end{itemize}
174174

0 commit comments

Comments
 (0)