Execute Python from Tableau with TabPy

Поділитися
Вставка
  • Опубліковано 27 гру 2020
  • Full Tutorial: blog.finxter.com/execute-pyth...
    ►► Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule?
    Check out our Python freelancer course: blog.finxter.com/become-pytho...
    ⁉️ Do you have a question? Leave a comment and we will answer as soon as possible!
    ⏰ Subscribe to the channel, never miss a new video!
    ►► / @finxter
    🐍 Did you know? Finxter is one of the top 10 Python Blogs on the internet!
    • Some articles you should read: blog.finxter.com/category/com...
    • How many of these tricky Python puzzles can you solve? www.finxter.com
    🚀 More about Python & Freelancing:
    • Finxter Email Academy (100% FREE): blog.finxter.com/email-academy/
    • Finxter Python Freelancer Webinar: blog.finxter.com/webinar-free...
    • Leaving the Rat Race with Python (Book): blog.finxter.com/book-leaving...
    #finxter #python
    Do you want to thrive as a self-employed Python freelancer controlling your own time, income, and work schedule? Check out our Python freelancer resources:
    Finxter Python Freelancer Course:
    blog.finxter.com/become-pytho...
    Finxter Python Freelancer Webinar:
    blog.finxter.com/webinar-free...
    Leaving the Rat Race with Python (Book):
    blog.finxter.com/book-leaving...

КОМЕНТАРІ • 6

  • @watcharaporntanchotsrinon3385
    @watcharaporntanchotsrinon3385 2 роки тому

    Thank you so much.

  • @priyankadahiphale5231
    @priyankadahiphale5231 2 місяці тому

    How to return single string value in calculated field using Tableau data from python and present it on new sheet of Tableau as Text value.
    For example, Data contains lists of cities and population of city. These are represented in graph in Tableau. We would like to find city having maximum population. Python code is written using max function. The python code is returning correct value to tableau, however there are multiple rows returned to tableau while I need only single value.
    Incase we are using label for returning maximum population in Tableau, it doesn’t return any value if we are not passing parameters in row and column field which are used in python code.
    Below python code is used to find maximum population in city:
    SCRIPT_STR("
    city_list = _arg2
    population_list = _arg1
    highest_population = max(population_list)
    ind = population_list.index(highest_population)
    city_name = city_list [ind]
    output_str = ' '+str(city_name)+' with highest population: '+str(highest_population)
    return output_str
    ", ATTR([City]),SUM([Population]))

  • @bigtaco4362
    @bigtaco4362 Рік тому

    I have a question, can we do all kind of stuff and make dashboards inside Tablaeu from Python or just calculations.
    Can we make charts and dashboard too ?

    • @alexanderlevakin9001
      @alexanderlevakin9001 3 місяці тому +1

      No, we can not. Tableau define several data types that can be returned from python. And you can not return picture or any matplotlib object.

    • @bigtaco4362
      @bigtaco4362 3 місяці тому

      @@alexanderlevakin9001 THANKYOU 🙌🏻

  • @svitirur1665
    @svitirur1665 Рік тому

    I don't have manage analytics extension is setting !!!!!