Skip to content

Commit

Permalink
Copy Files From Source Repo (2024-04-19 18:16)
Browse files Browse the repository at this point in the history
  • Loading branch information
olprod committed Apr 20, 2024
1 parent e6a9a20 commit 8fd359d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Instructions/Labs/02-analyze-spark.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ Apache Spark でデータを操作するには、"ノートブック" を作成
1. データフレームには、**2019.csv** ファイルからのデータのみが含まれます。 ファイル パスで \* ワイルドカードを使うようにコードを変更して、**orders** フォルダー内のすべてのファイルから販売注文データを読み取ります。
```python
from pyspark.sql.types import *
from pyspark.sql.types import *
orderSchema = StructType([
orderSchema = StructType([
StructField("SalesOrderNumber", StringType()),
StructField("SalesOrderLineNumber", IntegerType()),
StructField("OrderDate", DateType()),
Expand All @@ -163,8 +163,8 @@ Apache Spark でデータを操作するには、"ノートブック" を作成
StructField("Tax", FloatType())
])
df = spark.read.format("csv").schema(orderSchema).load("Files/orders/*.csv")
display(df)
df = spark.read.format("csv").schema(orderSchema).load("Files/orders/*.csv")
display(df)
```
1. 変更したコード セルを実行して出力を確認します。2019 年、2020 年、2021 年の売上が含まれるようになっているはずです。
Expand Down
1 change: 1 addition & 0 deletions Instructions/Labs/03b-medallion-lakehouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ Fabric でデータを操作する前に、Fabric 試用版を有効にしてワ
) \
.execute()
```
13. セルを実行し、****▷** ( *[セルの実行]* )** ボタンを使用してコードを実行します。

この操作は、特定の列の値に基づいてテーブル内の既存のレコードを更新し、一致するものが見つからない場合に新しいレコードを挿入できるようにするため、重要です。 これは、既存のレコードの更新と新しいレコードを含む可能性があるデータをソース システムから読み込む場合の一般的な要件です。

Expand Down
2 changes: 1 addition & 1 deletion Instructions/Labs/08c-data-science-train.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lab:

> ****:この演習を完了するには、[Microsoft Fabric 試用版](https://learn.microsoft.com/fabric/get-started/fabric-trial)が必要です。
## ワークスペースを作成する
## ワークスペースの作成

Fabric でデータを操作する前に、Fabric 試用版を有効にしてワークスペースを作成してください。

Expand Down
2 changes: 1 addition & 1 deletion Instructions/Labs/08d-data-science-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lab:

> ****:この演習を完了するには、[Microsoft Fabric 試用版](https://learn.microsoft.com/fabric/get-started/fabric-trial)が必要です。
## ワークスペースを作成する
## ワークスペースの作成

Fabric でデータを操作する前に、Fabric 試用版を有効にしてワークスペースを作成してください。

Expand Down

0 comments on commit 8fd359d

Please sign in to comment.