chore(i18n,learn): processed translations (#44851)

This commit is contained in:
camperbot
2022-01-21 01:00:18 +05:30
committed by GitHub
parent f866718a3d
commit 5c868af2b8
1696 changed files with 159426 additions and 69 deletions

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c14d
title: データ分析の例 A
challengeType: 11
videoId: nVAaxZ34khk
bilibiliIds:
aid: 590571151
bvid: BV1sq4y1f7gr
cid: 409002372
dashedName: data-analysis-example-a
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
データフレームの形状からわかることは何ですか?
## --answers--
メモリに読み込んだデータフレームのギガバイト単位のサイズ。
---
データフレームの行と列の数。
---
読み込み前のソースデータの行数。
---
読み込み前のソースデータの列数。
## --video-solution--
2

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c14e
title: データ分析の例 B
challengeType: 11
videoId: 0kJz0q0pvgQ
bilibiliIds:
aid: 505593432
bvid: BV1kg411c7M6
cid: 409003530
dashedName: data-analysis-example-b
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
`loc` メソッドでできることは何ですか?
## --answers--
整数の位置を示す引数を指定して行と列のサブセットを取得する。
---
ラベルの引数を指定して行と列のグループにアクセスする。
---
与えられた整数引数に基づいて、最初の `n` 行を返す。
## --video-solution--
2

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c160
title: データクリーニングと可視化
challengeType: 11
videoId: mHjxzFS5_Z0
bilibiliIds:
aid: 933107558
bvid: BV1KM4y137Ny
cid: 409019632
dashedName: data-cleaning-and-visualizations
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Matplotlib のグローバル API を使用している場合、次の数字の順序は何を意味しますか?
```py
plt.subplot(1, 2, 1)
```
## --answers--
図には 1 列、2 行があり、最初の (左の) プロットで図を描き始める。
---
最初の (左の) プロットで図を描き始め、図は 2 行、1 列となる。
---
図には 1 行、2 列があり、最初の (左の) プロットで図を描き始める。
## --video-solution--
3

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c15f
title: データクリーニングの重複
challengeType: 11
videoId: kj7QqjXhH6A
bilibiliIds:
aid: 675611672
bvid: BV1VU4y1A7tu
cid: 409019368
dashedName: data-cleaning-duplicates
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Python のメソッドである `.duplicated()` は、DataFrame の Series をブール値で返します。 戻り値が `True` となる行は次のうちどれですか?
## --answers--
重複が含まれていて、行の値にその値の最初の出現が含まれている行。
---
重複が含まれていて、行の値がその値の 2 回目以上の出現になっている行。
---
重複が含まれていて、行の値に最初または 2 回目の出現が含まれている行。
## --video-solution--
2

View File

@@ -0,0 +1,62 @@
---
id: 5e9a093a74c4063ca6f7c15d
title: データクリーニングの概要
challengeType: 11
videoId: ovYNhnltVxY
bilibiliIds:
aid: 250574398
bvid: BV1Pv411A7GN
cid: 409018611
dashedName: data-cleaning-introduction
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
import numpy as np
s = pd.Series(['a', 3, np.nan, 1, np.nan])
print(s.notnull().sum())
```
## --answers--
3
---
<pre>0 True
1 True
2 False
3 True
4 False
dtype: bool</pre>
---
<pre>0 False
1 False
2 True
3 False
4 True
dtype: bool</pre>
## --video-solution--
1

View File

@@ -0,0 +1,74 @@
---
id: 5e9a093a74c4063ca6f7c15e
title: DataFrame によるデータクリーニング
challengeType: 11
videoId: sTMN_pdI6S0
bilibiliIds:
aid: 505597026
bvid: BV1Yg411c7bx
cid: 409018948
dashedName: data-cleaning-with-dataframes
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/data-cleaning-rmotr-freecodecamp)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
import numpy as np
s = pd.Series([np.nan, 1, 2, np.nan, 3])
s = s.fillna(method='ffill')
print(s)
```
## --answers--
<pre>
0 1.0
1 1.0
2 2.0
3 3.0
4 3.0
dtype: float64
</pre>
---
<pre>
0 NaN
1 1.0
2 2.0
3 2.0
4 3.0
dtype: float64
</pre>
---
<pre>
0 NaN
1 1.0
2 2.0
3 NaN
4 3.0
dtype: float64
</pre>
## --video-solution--
2

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c14f
title: Jupyter Notebook の使い方紹介
challengeType: 11
videoId: h8caJq2Bb9w
bilibiliIds:
aid: 293035919
bvid: BV1Hf4y1n7qr
cid: 409002965
dashedName: how-to-use-jupyter-notebooks-intro
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Jupyter Notebook のセルで**使用できない**ものは何ですか?
## --answers--
マークダウン
---
Python コード
---
Excel シート
## --video-solution--
3

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c14c
title: データ分析入門
challengeType: 11
videoId: VJrP2FUzKP0
bilibiliIds:
aid: 378034466
bvid: BV19f4y1c7nu
cid: 409001487
dashedName: introduction-to-data-analysis
---
# --description--
その他のリソース:
\- [スライド](https://docs.google.com/presentation/d/1cUIt8b2ySz-85_ykfeuuWsurccwTAuFPn782pZBzFsU/edit?usp=sharing)
# --question--
## --text--
次のうち、**データ分析の一部ではない**ことはどれですか?
## --answers--
統計モデルとデータ可視化を構築すること。
---
分析にとって望ましい結論を選ぶこと。
---
不正な値を修正し、無効なデータを削除すること。
---
データを適切なデータ構造に変換すること。
## --video-solution--
2

View File

@@ -0,0 +1,42 @@
---
id: 5e9a093a74c4063ca6f7c150
title: Jupyter Notebook のセル
challengeType: 11
videoId: 5PPegAs9aLA
bilibiliIds:
aid: 420510493
bvid: BV19341117Hq
cid: 409003280
dashedName: jupyter-notebooks-cells
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Jupyter Notebook のセルの 3 つの主要なタイプは何ですか?
## --answers--
コード、マークダウン、Python
---
コード、マークダウン、生データ
---
マークダウン、Python、生データ
## --video-solution--
2

View File

@@ -0,0 +1,51 @@
---
id: 5e9a093a74c4063ca6f7c151
title: Jupyter Notebook のデータのインポートとエクスポート
challengeType: 11
videoId: k1msxD3JIxE
bilibiliIds:
aid: 975540688
bvid: BV1n44y1b7Gi
cid: 409006337
dashedName: jupyter-notebooks-importing-and-exporting-data
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-interactive-jupyterlab-tutorial)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Jupyter Notebook ではどのようなデータをインポートして作業できますか?
## --answers--
Excel ファイル
---
CSV ファイル
---
XML ファイル
---
API からのデータ
---
上記のすべて
## --video-solution--
5

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c157
title: Numpy の代数とサイズ
challengeType: 11
videoId: XAT97YLOKD8
bilibiliIds:
aid: 250621433
bvid: BV1hv41137uM
cid: 409013128
dashedName: numpy-algebra-and-size
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Python の標準ライブラリと Numpy ライブラリとの間で、メモリ内のオブジェクト (リストやデータ型など) のサイズの関係はどうなっていますか? そのことを踏まえるとパフォーマンスにどのような影響が生じますか?
## --answers--
標準的な Python オブジェクトは、NumPy オブジェクトよりも多くのメモリを消費する。標準的な Python オブジェクトと NumPy オブジェクトの演算はほぼ同じ時間で実行される。
---
NumPy オブジェクトは、標準的な Python オブジェクトよりもはるかに多くのメモリを消費する。NumPy オブジェクトに対する演算は、同等の標準的な Python オブジェクトに対する演算と比べて非常に高速に実行される。
---
NumPy オブジェクトは、標準的な Python オブジェクトよりもはるかに少ないメモリしか使用しない。標準的な Python オブジェクトに対する演算は、同等の NumPy オブジェクトに対する演算と比べて非常に高速に実行される。
---
標準的な Python オブジェクトは、NumPy オブジェクトよりも多くのメモリを消費する。NumPy オブジェクトに対する演算は、同等の標準的な Python オブジェクトに対する演算と比べて非常に高速に実行される。
## --video-solution--
4

View File

@@ -0,0 +1,63 @@
---
id: 5e9a093a74c4063ca6f7c154
title: Numpy の配列
challengeType: 11
videoId: VDYVFHBL1AM
bilibiliIds:
aid: 890607366
bvid: BV1zP4y1h7FR
cid: 409011400
dashedName: numpy-arrays
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
A = np.array([
['a', 'b', 'c'],
['d', 'e', 'f'],
['g', 'h', 'i']
])
print(A[:, :2])
```
## --answers--
```py
[['a' 'b']]
```
---
```py
[['b' 'c']
['e' 'f']
['h' 'i']]
```
---
```py
[['a' 'b']
['d' 'e']
['g' 'h']]
```
## --video-solution--
3

View File

@@ -0,0 +1,61 @@
---
id: 5e9a093a74c4063ca6f7c156
title: Numpy のブール配列
challengeType: 11
videoId: N1ttsMmcVMM
bilibiliIds:
aid: 208091324
bvid: BV1Qh411p7V8
cid: 409012711
dashedName: numpy-boolean-arrays
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
a = np.arange(5)
print(a <= 3)
```
## --answers--
```python
[False, False, False, False, True]
```
---
```python
[5]
```
---
```python
[0, 1, 2, 3]
```
---
```python
[True, True, True, True, False]
```
## --video-solution--
4

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c152
title: Numpy 入門 A
challengeType: 11
videoId: P-JjV6GBCmk
bilibiliIds:
aid: 718079611
bvid: BV18Q4y1k7om
cid: 409007080
dashedName: numpy-introduction-a
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
なぜ Numpy は重要でありながら人気のない Python ライブラリなのでしょうか?
## --answers--
Numpy で直接作業する機会があまりないから。
---
非常に遅いから。
---
Numpy で作業することは難しいから。
## --video-solution--
1

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c153
title: Numpy 入門 B
challengeType: 11
videoId: YIqgrNLAZkA
bilibiliIds:
aid: 250503382
bvid: BV1kv411w7vB
cid: 409010193
dashedName: numpy-introduction-b
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
通常の Python では、整数 `5` はどれくらいのメモリを消費しますか?
## --answers--
32 ビット
---
20 バイト
---
16 バイト
---
8 ビット
## --video-solution--
2

View File

@@ -0,0 +1,54 @@
---
id: 5e9a093a74c4063ca6f7c155
title: Numpy の演算
challengeType: 11
videoId: eqSVcJbaPdk
bilibiliIds:
aid: 378057123
bvid: BV13f4y1w7od
cid: 409012507
dashedName: numpy-operations
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-numpy)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードを実行した後、`a` の値は何になりますか?
```py
a = np.arange(5)
a + 20
```
## --answers--
```python
[20, 21, 22, 24, 24]
```
---
```python
[0, 1, 2, 3, 4]
```
---
```python
[25, 26, 27, 28, 29]
```
## --video-solution--
2

View File

@@ -0,0 +1,77 @@
---
id: 5e9a093a74c4063ca6f7c15b
title: Pandas の条件付き選択とデータフレームの変更
challengeType: 11
videoId: BFlH0fN5xRQ
bilibiliIds:
aid: 505598518
bvid: BV1vg411c72y
cid: 409113534
dashedName: pandas-conditional-selection-and-modifying-dataframes
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
certificates_earned = pd.DataFrame({
'Certificates': [8, 2, 5, 6],
'Time (in months)': [16, 5, 9, 12]
})
names = ['Tom', 'Kris', 'Ahmad', 'Beau']
certificates_earned.index = names
longest_streak = pd.Series([13, 11, 9, 7], index=names)
certificates_earned['Longest streak'] = longest_streak
print(certificates_earned)
```
## --answers--
<pre>
Tom 13
Kris 11
Ahmad 9
Beau 7
Name: Longest streak, dtype: int64
</pre>
---
<pre>
Certificates Time (in months) Longest streak
Tom 8 16 13
Kris 2 5 11
Ahmad 5 9 9
Beau 6 12 7
</pre>
---
<pre>
Certificates Longest streak
Tom 8 13
Kris 2 11
Ahmad 5 9
Beau 6 7
</pre>
## --video-solution--
2

View File

@@ -0,0 +1,62 @@
---
id: 5e9a093a74c4063ca6f7c15c
title: Pandas での列の作成
challengeType: 11
videoId: _sSo2XZoB3E
bilibiliIds:
aid: 975568901
bvid: BV1b44y1b7Cg
cid: 409018052
dashedName: pandas-creating-columns
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のような `certificates_earned` DataFrame に "Certificates per month" (月ごとの証明書) 列を追加するコードはどのようになりますか?
<pre> Certificates Time (in months) Certificates per month
Tom 8 16 0.50
Kris 2 5 0.40
Ahmad 5 9 0.56
Beau 6 12 0.50</pre>
## --answers--
```py
certificates_earned['Certificates'] /
certificates_earned['Time (in months)']
```
---
```py
certificates_earned['Certificates per month'] = round(
certificates_earned['Certificates'] /
certificates_earned['Time (in months)']
)
```
---
```py
certificates_earned['Certificates per month'] = round(
certificates_earned['Certificates'] /
certificates_earned['Time (in months)'], 2
)
```
## --video-solution--
3

View File

@@ -0,0 +1,70 @@
---
id: 5e9a093a74c4063ca6f7c15a
title: Pandas のデータフレーム (DataFrame)
challengeType: 11
videoId: 7SgFBYXaiH0
bilibiliIds:
aid: 890503235
bvid: BV1TP4y1h7qq
cid: 409014039
dashedName: pandas-dataframes
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
certificates_earned = pd.DataFrame({
'Certificates': [8, 2, 5, 6],
'Time (in months)': [16, 5, 9, 12]
})
certificates_earned.index = ['Tom', 'Kris', 'Ahmad', 'Beau']
print(certificates_earned.iloc[2])
```
## --answers--
<pre>
Tom 16
Kris 5
Ahmad 9
Beau 12
Name: Time (in months), dtype: int64
</pre>
---
<pre>
Certificates 6
Time (in months) 12
Name: Beau, dtype: int64
</pre>
---
<pre>
Certificates 5
Time (in months) 9
Name: Ahmad, dtype: int64
</pre>
## --video-solution--
3

View File

@@ -0,0 +1,69 @@
---
id: 5e9a093a74c4063ca6f7c159
title: Pandas でのインデックス作成と条件付き選択
challengeType: 11
videoId: '-ZOrgV_aA9A'
bilibiliIds:
aid: 720604139
bvid: BV1FQ4y1k7tC
cid: 409013650
dashedName: pandas-indexing-and-conditional-selection
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
certificates_earned = pd.Series(
[8, 2, 5, 6],
index=['Tom', 'Kris', 'Ahmad', 'Beau']
)
print(certificates_earned[certificates_earned > 5])
```
## --answers--
<pre>
Tom True
Kris False
Ahmad False
Beau True
dtype: int64
</pre>
---
<pre>
Tom 8
Ahmad 5
Beau 6
dtype: int64
</pre>
---
<pre>
Tom 8
Beau 6
dtype: int64
</pre>
## --video-solution--
3

View File

@@ -0,0 +1,72 @@
---
id: 5e9a093a74c4063ca6f7c158
title: Pandas 入門
challengeType: 11
videoId: 0xACW-8cZU0
bilibiliIds:
aid: 975510116
bvid: BV1u44y1b7fD
cid: 409013433
dashedName: pandas-introduction
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/freecodecamp-intro-to-pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次のコードは何を表示しますか?
```py
import pandas as pd
certificates_earned = pd.Series(
[8, 2, 5, 6],
index=['Tom', 'Kris', 'Ahmad', 'Beau']
)
print(certificates_earned)
```
## --answers--
```
Tom 8
Kris 2
Ahmad 5
Beau 6
dtype: int64
```
---
```
Kris 2
Ahmad 5
Beau 6
Tom 8
dtype: int64
```
---
```
Tom 8
Kris 2
Ahmad 5
Beau 6
Name: certificates_earned dtype: int64
```
## --video-solution--
1

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c164
title: HTMLの解析とデータの保存
challengeType: 11
videoId: bJaqnTWQmb0
bilibiliIds:
aid: 335522976
bvid: BV1RA411F7vi
cid: 409023170
dashedName: parsing-html-and-saving-data
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
HTML ドキュメントの解析やテーブルの抽出に使用できる `.read_html()` メソッドが含まれている Python ライブラリは何ですか?
## --answers--
BeautifierSoupy
---
WebReader
---
HTTP-master
---
Pandas
## --video-solution--
4

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c166
title: Python の関数とコレクション
challengeType: 11
videoId: NzpU17ZVlUw
bilibiliIds:
aid: 675544435
bvid: BV1pU4y1N7JC
cid: 409023833
dashedName: python-functions-and-collections
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Python のリストとタプルの主な違いは何ですか?
## --answers--
タプルはイミュータブル (変更不可) である。
---
リストは順序付けられている。
---
タプルは順序付けられていない。
## --video-solution--
1

View File

@@ -0,0 +1,47 @@
---
id: 5e9a093a74c4063ca6f7c165
title: Python 入門
challengeType: 11
videoId: PrQV9JkLhb4
bilibiliIds:
aid: 805597530
bvid: BV1634y1S7gD
cid: 409023550
dashedName: python-introduction
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Python の関数の本体でコードブロックを定義するにはどうすればよいですか?
## --answers--
新しいコードブロックごとに、それぞれの両端で中括弧を使用する。
---
インデントを使用する (通常は右揃えの 4 つのスペース)。
---
コードブロックを明記しない。
---
中括弧やインデントを使用してコードブロックを明記することができる。
## --video-solution--
2

View File

@@ -0,0 +1,60 @@
---
id: 5e9a093a74c4063ca6f7c167
title: Python の繰り返し処理とモジュール
challengeType: 11
videoId: XzosGWLafrY
bilibiliIds:
aid: 633068913
bvid: BV1db4y127M4
cid: 409024056
dashedName: python-iteration-and-modules
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/ine-rmotr-curriculum/ds-content-python-under-10-minutes)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
`user` という名前の辞書のキーと値を繰り返し処理して表示するにはどうすればよいですか?
## --answers--
```python
for key in user.items():
print(key)
```
---
```python
for key, value in user.all():
print(key, value)
print(value)
```
---
```python
for key, value in user.items():
print(key, value)
```
---
```python
for key, value in user
print(key, value)
```
## --video-solution--
3

View File

@@ -0,0 +1,59 @@
---
id: 5e9a093a74c4063ca6f7c162
title: CSV や TXT のデータの読み取り
challengeType: 11
videoId: ViGEv0zOzUk
bilibiliIds:
aid: 505575354
bvid: BV1tg411c7GH
cid: 409020451
dashedName: reading-data-csv-and-txt
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
Pandas モジュールを使用して CSV ファイル `data.csv` をインポートし、DataFrame に格納するにはどうすればよいですか?
## --answers--
```python
import pandas as pd
df = pd.csv("data.csv")
```
---
```python
import pandas as pd
df = pd.read_csv("data.csv")
```
---
```python
import pandas as pd
pd.read_csv("data.csv")
```
---
```python
import pandas as pd
df = pd.csv_reader("data.csv")
```
## --video-solution--
2

View File

@@ -0,0 +1,43 @@
---
id: 5e9a093a74c4063ca6f7c163
title: データベースからのデータの読み取り
challengeType: 11
videoId: MtgXS1MofRw
bilibiliIds:
aid: 890546354
bvid: BV1JP4y1h7gk
cid: 409020851
dashedName: reading-data-from-databases
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
`Cursor` インスタンスにはどのようなメソッドがあり、何を実行できますか?
## --answers--
`Cursor` インスタンスには、SQL クエリを実行するための `.run()` メソッドがある。
---
`Cursor` インスタンスには、レコードを選択するための `.select()` メソッドがある。
---
`Cursor` インスタンスには、データベースに対して実行する SQL パラメーターを受け取る `.execute()` メソッドがある。
## --video-solution--
3

View File

@@ -0,0 +1,76 @@
---
id: 5e9a093a74c4063ca6f7c161
title: データの読み取り入門
challengeType: 11
videoId: cDnt02BcHng
bilibiliIds:
aid: 548023524
bvid: BV1Nq4y1K7iV
cid: 409020187
dashedName: reading-data-introduction
---
# --description--
*動画で説明しているように、notebooks.ai を使用する代わりに Google Colab を使用することができます。*
その他のリソース:
- [GitHub のノート](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [Google Colab を使用して GitHub からノートを開く方法](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
次の内容を含む `certificates.csv` という名前のファイルが与えられます。
<pre>
Name$Certificates$Time (in months)
Tom$8$16
Kris$2$5
Ahmad$5$9
Beau$6$12
</pre>
次のコードで、不足している引数部分の空欄を埋めてください。
```py
import csv
with open(__A__, 'r') as fp:
reader = csv.reader(fp, delimiter=__B__)
next(reader)
for index, values in enumerate(reader):
name, certs_num, months_num = values
print(f"{name} earned {__C__} certificates in {months_num} months")
```
## --answers--
A: `'certificates.csv'`
B: `'-'`
C: `values`
---
A: `'certificates.csv'`
B: `'$'`
C: `certs_num`
---
A: `'certificates'`
B: `'$'`
C: `certs_num`
## --video-solution--
2