Hi Nitin,
If you are going through a kernel, I would first download it locally (or fork it in kaggle) and manually run each cell. When you get to a command that you don’t understand, first, make sure to break it down to exactly one method call at a time.
For instance if you see something like the following:
df.method1().method2().method3()
and don’t understand method1
, then run just that command separately like this:
df.method1()
and read the documentation/check stack overflow for how it works. Explore the different combinations of parameters that can be used. Press shift + tab + tab
to read the docstrings in a Jupyter Notebook.
Once you are good with that command store the result of that expression into a variable like this:
df1 = df.method1()
and move onto the next method:
df1.method2()
and repeat the process.
If the notebook contains too many commands you don’t understand, then stop! And move onto a different kernel and find something that you do understand. There is no point struggling with commands that are too difficult for you. Hope that helps!