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?

More than 1 year has passed since last update.

Tableau PrepからPythonスクリプトを使用できるようにセットしてみた(Windows)

Last updated at Posted at 2023-09-11

前提

以下の手順を記載しております。
①Tabpyのセットアップ

参考ドキュメント

手順

1.Tabpyのセットアップ

①AnacondaからPythonをダウンロードし、インストールする(今回はWindows)

image.png
image.png
②Anaconda Powershell Promptを管理者権限で起動し、以下のコマンドによってAnacondaの仮想環境を生成

$ conda create -n Tableau-Python-Server python=3.7 anaconda

③以下のコマンドを実行し、仮想環境を有効化

$ activate Tableau-Python-Server
$ conda info -e

④「TabPy」パッケージをインストール

$ conda install tabpy-server
$ conda install tabpy-client

⑤Pandasをインストール

$ pip3 install pandas

⑥mojimojiをインストール(任意)

$ pip install mojimoji

⑦tabpyを起動

tabpy

2.Tableau Prep BuilderからPythonスクリプを使用

①Tableau Prep Builderを起動し、「ヘルプ」→「設定およびパフォーマンス」→「分析の拡張機能の接続」をクリック
image.png
②分析拡張機能の選択:Tableau Python(TabPy)Server
サーバー:localhost
ポート:9004
サインインをクリック
image.png
③以下のブログを参考にスクリプトを実施

image.png

無事変換されました!
以上

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?