Jupyter 101 TryHackMe Write-Up

Hey, folks welcome back to the new article on Jupyter notebook basics. Firstly we going to see what is Jupyter Notebook.

Jupyter is a web-based platform that is frequently used for data analytics/plotting, machine learning, and where code is stored in “Notebooks” that can be imported/exported and shared in a variety of formats including LaTex, HTML, PDF, and many more!

The Jupyter Notebook environment isn’t the easiest thing in the world to install and deploy. Normally, you must provide configuration files, Python environments, and a slew of other goodies. I’ve done the legwork and created a cloud-friendly Jupyter deployment that launches on boot.

What do “Cells” act like?

interpreter

What would be the In[#] value of the first Cell when it is ran for the first time? (Where # would be the numerical value)

1

What keyboard shortcut can you press to execute a cell?

Shift + Enter

If you was to execute the first Cell again, what would the value of In[#] now become? (Where # would be the numerical value)

2

What are the two main types of data within Pandas?

series and dataframe

What is the name of the Pandas function that reads a CSV file?

read_csv

Name the Pandas function you would use if you only wanted to display the first few rows

head

Name the Pandas function you would use if you only wanted to display the last few rows

tail

What Pandas function will give you a numerical count of the amount of columns and rows the dataset contains?

shape

How do you display a plot?

plot()

How would you label the “x” axis on a plot?

xlabel

How would you label the “y” axis on a plot?

ylabel

How would you add a “Title” to a plot?

title

What word would you use to change the color of the plot?

color

How would you label the “z” axis on a plot?

zlabel

CTF player