Power BIで学ぶPythonの基本

Power BI で始める Python 入門

Jacob H. Marquez

Data Scientist

前提知識

Power BI で始める Python 入門

学習内容

Power BI

  • Power Query によるデータの取り込みと結合
  • Power Query による欠損値の検出
  • クイック メジャーで相関係数を計算

Python

  • pandas での取り込みと結合
  • 欠損値の検出と補完
  • Seaborn で可視化作成
Power BI で始める Python 入門

はじめに - Python のダウンロード

Power BI で始める Python 入門

はじめに - パッケージのインストール

必要なPythonパッケージは次の2つです:

  • pandas
  • matplotlib

コマンドライン端末の画像。

1 https://packaging.python.org/en/latest/tutorials/installing-packages/
Power BI で始める Python 入門

はじめに - Power BI

「ファイル」>「オプションと設定」>「オプション」>「Python スクリプト」

  • ホームディレクトリ
  • 統合開発環境(IDE)

Power BI の設定メニュー。Python スクリプトのオプションを強調表示。

1 https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
Power BI で始める Python 入門

はじめに - Power BI

Power BI の設定メニュー。Python スクリプトのオプションを強調表示。緑の枠でホームディレクトリ設定を囲んでいる。

1 https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
Power BI で始める Python 入門

はじめに - Power BI

Power BI の設定メニュー。Python スクリプトのオプションを強調表示。緑の枠で統合開発環境の設定を囲んでいる。

1 https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
Power BI で始める Python 入門

制約事項

  • DataFrame は一時保存
  • 可視化で使用できる行は最大 150,000 行
  • データセットは 250 MB 未満
  • データセットは「公開」に設定
Power BI で始める Python 入門

学ぶメリット

Power BI ユーザーにとっての Python

  • 変換の柔軟性
  • 難しい計算を容易に
  • カスタム可視化の作成

Python ユーザーにとっての Power BI

  • 可視化が高速
  • 迅速なダッシュボード作成
  • 共有が容易
Power BI で始める Python 入門

データセット

fished.csv

entity year fished
Australia 1990 153148
United States 1990 502923
Japan 1990 567895

farmed.csv

entity year farmed
Australia 1990 23567
United States 1990 436758
Japan 1990 534978
Power BI で始める Python 入門

演習に進みましょう!

Power BI で始める Python 入門

Preparing Video For Download...