0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

一人アドカレAdvent Calendar 2024

Day 1

【TryHackMe】Jupyter 101:Walkthrough

Posted at

概要

TryHackMe「Jupyter 101」のWalkthroughです。

Task5

Q1.What do "Cells" act like?

image.png

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)

image.png

A.1

Q3.What keyboard shortcut can you press to execute a cell?

image.png

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に変化しました。

image.png

A.2

Task7

Q1.What are the two main types of data within Pandas?

Hint.****** and **********

image.png

A.Series and Dataframes

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

read_csv関数で読み込めます。

image.png

A.read_csv

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

head(num)関数で先頭から表示する行数を指定できます。

image.png

A.head

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

tail(num)で最後の行から表示する行数を指定できます。

image.png

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関数を使用できます。

image.png

A.shape

Task8

Q1.How do you display a plot?

Hint.You'll need to include the brackets () for this!

image.png

A.plot()

Q2.How would you label the "x" axis on a plot?

image.png

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='')で色を変更できます。

image.png

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

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?