0
0
Tableaubi_tool~10 mins

Data interpreter for cleaning in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable the Data Interpreter in Tableau.

Tableau
worksheet.DataInterpreter.[1] = True
Drag options to blanks, or click blank then click option'
Arun
Benable
Cstart
Dactivate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'activate' instead of 'enable' causes an error.
Trying to call a method instead of setting a property.
2fill in blank
medium

Complete the code to check if Data Interpreter is currently enabled.

Tableau
if worksheet.DataInterpreter.[1]:
Drag options to blanks, or click blank then click option'
Aenabled
Bactive
Cstatus
DisEnabled
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' or 'active' which are not valid properties.
Using a method name instead of a property.
3fill in blank
hard

Complete the code to properly disable the Data Interpreter.

Tableau
worksheet.DataInterpreter.[1] = False
Drag options to blanks, or click blank then click option'
Aenable
Bdisable
CsetEnabled
Dactivate
Attempts:
3 left
💡 Hint
Common Mistakes
Calling 'enable' as a method with parentheses.
Using 'disable' which is not a valid property or method.
4fill in blank
hard

Fill both blanks to correctly toggle the Data Interpreter based on a condition.

Tableau
if user_choice == 'on':
    worksheet.DataInterpreter.[1] = True
else:
    worksheet.DataInterpreter.[2] = False
Drag options to blanks, or click blank then click option'
Aenable
Bactivate
Ddisable
Attempts:
3 left
💡 Hint
Common Mistakes
Using different property names for enabling and disabling.
Using methods instead of properties.
5fill in blank
hard

Fill all three blanks to correctly check and toggle the Data Interpreter in a function.

Tableau
def toggle_data_interpreter(sheet, turn_on):
    if sheet.DataInterpreter.[1] != turn_on:
        sheet.DataInterpreter.[2] = [3]
Drag options to blanks, or click blank then click option'
Aenabled
Benable
Cturn_on
Dactive
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'enabled' and 'enable' properties.
Using a method instead of a property.