SlideShare a Scribd company logo
1 of 12
Download to read offline
#import sys
#import tableausdk import*
#import tableausdk.HyperExtract import*
def createHyper(filename):
try:
hyper = Extract(filename)
if (not hyper.hasTable(‘Extract’):
schema = TableDefinition()
schema.setDefaultCollation.EN_GB)
schema.addColumn(‘ClubJoinDate’, Type.DATETIME)
schema.addColumn(‘IsTableauUser’, Type.BOOLEAN)
schema.addColumn(‘Name’, Type.UNICODE_STRING)
table = hyper.addTable(‘Extract’, schema)
if (table == None):
print ‘A fatal error occurred’
exit (-1)
except TableauException, e:
print ‘A fatal error occurred:’, e
exit (-1)
return hyper
def populateHyper(hyper):
try:
table = hyper.openTable(‘Extract’)
schema = table.getTableDefinition()
Tableau
Developers Club I
/*TableauをAPIで操ろう*/
2018.5.17
Web Data Connector #1
#import sys
#import tableausdk import*
#import tableausdk.HyperExtract import*
def createHyper(filename):
try:
hyper = Extract(filename)
if (not hyper.hasTable(‘Extract’):
schema = TableDefinition()
schema.setDefaultCollation.EN_GB)
schema.addColumn(‘ClubJoinDate’, Type.DATETIME)
schema.addColumn(‘IsTableauUser’, Type.BOOLEAN)
schema.addColumn(‘Name’, Type.UNICODE_STRING)
table = hyper.addTable(‘Extract’, schema)
if (table == None):
print ‘A fatal error occurred’
exit (-1)
except TableauException, e:
print ‘A fatal error occurred:’, e
exit (-1)
return hyper
def populateHyper(hyper):
try:
table = hyper.openTable(‘Extract’)
schema = table.getTableDefinition()
Tableau
Developers Club I
/*TableauをAPIで操ろう*/
2018.5.17
Web Data Connector #1
//Welcome
Tableau Developers Club はTableauのAPIや開発者用ツー
ルを使ってTableauの魅力をさらに引き出すコミュニティーです。
var Organizers =
[
“ Tableau Japan株式会社 藤原 淳子 ”, //Lead
“ Tableau Japan株式会社 田中 かおり ”, //Sub Lead
“ Tableau Japan株式会社 野口 健二 ”,
“ Tableau Japan株式会社 飯村 晃彦 ”,
“ 株式会社GRI 古幡 征史 ”,
“ 株式会社シリウス・データサイエンス 小今井 貴祐 ”,
“ NECソリューションイノベータ株式会社 渡邉 一輝 ”,
“ ヴェルク株式会社 津久井 浩太郎 ”,
]; 敬称略・順不同
//Note
// 本日の言語はJavaScriptがメインとなります
// エディターはお好きなものをお使いください
// オンラインヘルプは英語です
// ハンズオン用にはパッケージをお配りします
// 質問がある場合はその場でお尋ねください
// 楽しんでいってください
var Agenda =
[
“ Into ”,
“ Web Data Connector とは ”,
“ Web Data Connector ハンズオン ”,
“ Web Data Connector 実践編 ”,
“ 次回イベント(WDC#1.5とWDC#2)のご案内 ”,
“ ネットワーキング “
];
//Communication Tools
https://tableau-dev-club.slack.com
WDC Channel は#WDCです。
特にルールはないのでご自由にスレッド立ててください。
イベント期間外は質問等を投函されてもTableau社員がレスしない可能性
がございます。APIはSupport対象外となっております。ご了承くださいませ。
//Web Data Connector()
//Practice 実践編
本日のハンズオンを参考に、自分のWDCを作りましょう♪
地域経済分析システム(RESAS:リーサス)
https://resas.go.jp
WorldBank
https://datahelpdesk.worldbank.org/knowledgebase/topics/125589-developer-
information
その他、なんでもOKです。
//Next Meetup
2018.N.N Web Data Connector #1.5
より詳細を知りたい方のために、WDC内部構造の解説をウェブ配信いたします。
2018.6.7 Web Data Connector #2
WDC第2弾は、本日の実践編の結果をシェアする会です。
はまった箇所やヘルプが必要な個所をシェアしてその場で解決してみましょう。
完成した方はお披露目してください。
#import sys
#import tableausdk import*
#import tableausdk.HyperExtract import*
def createHyper(filename):
try:
hyper = Extract(filename)
if (not hyper.hasTable(‘Extract’):
schema = TableDefinition()
schema.setDefaultCollation.EN_GB)
schema.addColumn(‘ClubJoinDate’, Type.DATETIME)
schema.addColumn(‘IsTableauUser’, Type.BOOLEAN)
schema.addColumn(‘Name’, Type.UNICODE_STRING)
table = hyper.addTable(‘Extract’, schema)
if (table == None):
print ‘A fatal error occurred’
exit (-1)
except TableauException, e:
print ‘A fatal error occurred:’, e
exit (-1)
return hyper
def populateHyper(hyper):
try:
table = hyper.openTable(‘Extract’)
schema = table.getTableDefinition()
Tableau
Developers Club
/*TableauをAPIで操ろう*/
2018.5.17
Web Data Connector #1
2018.6.7
Web Data Connector #2

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Tableau Developers Club - Introduction

  • 1. #import sys #import tableausdk import* #import tableausdk.HyperExtract import* def createHyper(filename): try: hyper = Extract(filename) if (not hyper.hasTable(‘Extract’): schema = TableDefinition() schema.setDefaultCollation.EN_GB) schema.addColumn(‘ClubJoinDate’, Type.DATETIME) schema.addColumn(‘IsTableauUser’, Type.BOOLEAN) schema.addColumn(‘Name’, Type.UNICODE_STRING) table = hyper.addTable(‘Extract’, schema) if (table == None): print ‘A fatal error occurred’ exit (-1) except TableauException, e: print ‘A fatal error occurred:’, e exit (-1) return hyper def populateHyper(hyper): try: table = hyper.openTable(‘Extract’) schema = table.getTableDefinition() Tableau Developers Club I /*TableauをAPIで操ろう*/ 2018.5.17 Web Data Connector #1
  • 2. #import sys #import tableausdk import* #import tableausdk.HyperExtract import* def createHyper(filename): try: hyper = Extract(filename) if (not hyper.hasTable(‘Extract’): schema = TableDefinition() schema.setDefaultCollation.EN_GB) schema.addColumn(‘ClubJoinDate’, Type.DATETIME) schema.addColumn(‘IsTableauUser’, Type.BOOLEAN) schema.addColumn(‘Name’, Type.UNICODE_STRING) table = hyper.addTable(‘Extract’, schema) if (table == None): print ‘A fatal error occurred’ exit (-1) except TableauException, e: print ‘A fatal error occurred:’, e exit (-1) return hyper def populateHyper(hyper): try: table = hyper.openTable(‘Extract’) schema = table.getTableDefinition() Tableau Developers Club I /*TableauをAPIで操ろう*/ 2018.5.17 Web Data Connector #1
  • 3. //Welcome Tableau Developers Club はTableauのAPIや開発者用ツー ルを使ってTableauの魅力をさらに引き出すコミュニティーです。
  • 4. var Organizers = [ “ Tableau Japan株式会社 藤原 淳子 ”, //Lead “ Tableau Japan株式会社 田中 かおり ”, //Sub Lead “ Tableau Japan株式会社 野口 健二 ”, “ Tableau Japan株式会社 飯村 晃彦 ”, “ 株式会社GRI 古幡 征史 ”, “ 株式会社シリウス・データサイエンス 小今井 貴祐 ”, “ NECソリューションイノベータ株式会社 渡邉 一輝 ”, “ ヴェルク株式会社 津久井 浩太郎 ”, ]; 敬称略・順不同
  • 5. //Note // 本日の言語はJavaScriptがメインとなります // エディターはお好きなものをお使いください // オンラインヘルプは英語です // ハンズオン用にはパッケージをお配りします // 質問がある場合はその場でお尋ねください // 楽しんでいってください
  • 6. var Agenda = [ “ Into ”, “ Web Data Connector とは ”, “ Web Data Connector ハンズオン ”, “ Web Data Connector 実践編 ”, “ 次回イベント(WDC#1.5とWDC#2)のご案内 ”, “ ネットワーキング “ ];
  • 7. //Communication Tools https://tableau-dev-club.slack.com WDC Channel は#WDCです。 特にルールはないのでご自由にスレッド立ててください。 イベント期間外は質問等を投函されてもTableau社員がレスしない可能性 がございます。APIはSupport対象外となっております。ご了承くださいませ。
  • 10. //Next Meetup 2018.N.N Web Data Connector #1.5 より詳細を知りたい方のために、WDC内部構造の解説をウェブ配信いたします。 2018.6.7 Web Data Connector #2 WDC第2弾は、本日の実践編の結果をシェアする会です。 はまった箇所やヘルプが必要な個所をシェアしてその場で解決してみましょう。 完成した方はお披露目してください。
  • 11.
  • 12. #import sys #import tableausdk import* #import tableausdk.HyperExtract import* def createHyper(filename): try: hyper = Extract(filename) if (not hyper.hasTable(‘Extract’): schema = TableDefinition() schema.setDefaultCollation.EN_GB) schema.addColumn(‘ClubJoinDate’, Type.DATETIME) schema.addColumn(‘IsTableauUser’, Type.BOOLEAN) schema.addColumn(‘Name’, Type.UNICODE_STRING) table = hyper.addTable(‘Extract’, schema) if (table == None): print ‘A fatal error occurred’ exit (-1) except TableauException, e: print ‘A fatal error occurred:’, e exit (-1) return hyper def populateHyper(hyper): try: table = hyper.openTable(‘Extract’) schema = table.getTableDefinition() Tableau Developers Club /*TableauをAPIで操ろう*/ 2018.5.17 Web Data Connector #1 2018.6.7 Web Data Connector #2