概要
TryHackMe「Jupyter 101」のWalkthroughです。
Task5
Q1.What do "Cells" act like?
A.Interpreter
Q2.What would be the In[#] value of the first Cell when it is ran for the first time? (Where # would be the numerical value)
A.1
Q3.What keyboard shortcut can you press to execute a cell?
A.Shift + Enter
Q4.If you was to execute the first Cell again, what would the value of In[#] now become? (Where # would be the numerical value)
Hint.Remember, Cells can be executed multiple times. All the In[] value represents is how many code executions or "steps" that have happened so far.
実行すると1
->2
に変化しました。
A.2
Task7
Q1.What are the two main types of data within Pandas?
Hint.****** and **********
A.Series and Dataframes
Q2.What is the name of the Pandas function that reads a CSV file?
read_csv
関数で読み込めます。
A.read_csv
Q3.Name the Pandas function you would use if you only wanted to display the first few rows
head(num)
関数で先頭から表示する行数を指定できます。
A.head
Q4.Name the Pandas function you would use if you only wanted to display the last few rows
tail(num)
で最後の行から表示する行数を指定できます。
A.tail
Q5.What Pandas function will give you a numerical count of the amount of columns and rows the dataset contains?
Hint.This is appended to when we display the csvfile!
shape
関数を使用できます。
A.shape
Task8
Q1.How do you display a plot?
Hint.You'll need to include the brackets () for this!
A.plot()
Q2.How would you label the "x" axis on a plot?
A.xlabel
Q3.How would you label the "y" axis on a plot?
A.ylabel
Q4.How would you add a "Title" to a plot?
A.title
Q5.What word would you use to change the color of the plot?
Hint.British spelling! (Sorry Yankies...)
plot(color='')
で色を変更できます。
A.color
Q6.How would you label the "z" axis on a plot?
Hint.We don't cover it in the Notebook, but think of how we label both the "x" and "y" axis.
A.zlabel