Questions tagged [tabpy]

TabPy is a server that is used by tableau to identify the python scripts and execute it. It is one of the externally managed services.

55 questions
0
votes
1 answer

TabPy Tableau Convert Dimension where each row is in Hex to ASCII with calculated field with Python

I have a Dimension in Tableau where each row is in Hex (Tableau Datatype is string, but these values are actually hex). I want to convert this dimension (each row) into ASCII with Python Code (TabPy (calculated Field)). Does anyone know how to do…
0
votes
1 answer

ndarray is not JSON serializable TypeError on working script (Tableau Prep - TabPy)

I have working code using test data, seen here: (sample data matches type and format of inputs that I will be using this script with later, including dates as strings appended with 'Z') from sklearn import linear_model import pandas as pd …
0
votes
1 answer

Tabpy and Postgres

I'm experimenting with Tabpy in Tableau and writing data back to a database via a users selection in a dashboard. My data connections work fine. However, I'm having trouble passing a variable back into the SQL query and getting an error saying the…
0
votes
1 answer

configparser.DuplicateOptionError: While reading from '': option 'socks_proxy' in section 'DEFAULT' already exists

I have a problem which I cannot resolve and I hope that someone gives me a hint what is wrong. I have to install tabpy on SLES server. I already installed python-3.8.12, openssl-1.1.1l and tabpy 2.4.0. I went thru instruction:…
demekSR
  • 3
  • 1
  • 2
0
votes
0 answers

Tableau TabPy extension with a Python Anywhere account

Does anybody had successfully configured Tableau Desktop to use PythonAnywhere as an external service where to execute python scripts with Tableau? I am trying to follow this tutorial but it is about using a localhost server, so it looks different…
Nicolaesse
  • 2,554
  • 12
  • 46
  • 71
0
votes
1 answer

ModuleNotFoundError: No module named 'tabpy'

So I did try !pip install tabpy in my Notebook and it worked and installed all the packages and whatnot. But in the very next cell, when I tried to run import tabpy, it throws the error ModuleNotFoundError: No module named 'tabpy' Any help will be…
0
votes
1 answer

Tabpy: function Deployment fails on Docker running Tabpy

I am trying to deploy function to tabpy server , but I am getting following error while executing : client.deploy('add',add,'adding x and y') I am getting following error : Overwriting existing file…
0
votes
2 answers

Word Clouds using TabPy

I want to create some code in TabPy that will count the frequency of words in a column and remove stop words for a word cloud in Tableau. I'm able to do this easily enough in Python: other1_count =…
CIHAnalytics
  • 143
  • 1
  • 10
0
votes
1 answer

TabPy Server configuration error when running flow from command line

I have a tableau prep flow which uses python script. When i run the flow from tableau prep, it works. However, i am using command line alongside task scheduler to automate the flow. When running the automated flow; i am encountering the error…
Hemant
  • 59
  • 5
0
votes
0 answers

TabPy in Tableau - chi square test

I have a tableau book with integrated TabPy I want to calculate chi square test and receive p value SCRIPT_REAL( "from scipy.stats import chi2_contingency data = [[_arg1, _arg2], [_arg3, arg4]] stat, p, dof, expected = chi2_contingency(data)…
0
votes
1 answer

Eliminate Circular Reference Tableau/Order of Calculation

I am new here but hoping that I can get some better answers than on the Tableau community. I am working to create a calculator tool within Tableau. It is a bit of a strange thing to do within Tableau but so far it is working well until I came across…
0
votes
2 answers

Unable to retrieve results for field [{0}] TabPy error while using a python sql function in the flow

I am trying to run SQL queries within a defined function. I want a pandas data frame as an output but I get a list though the data seems correct. Here's my code: import pandas as pd from pandasql import sqldf import pandasql as psql …
Pankaj Kaundal
  • 1,012
  • 3
  • 13
  • 25
0
votes
0 answers

Modyfing python code and running PCA in Tableau

I am a beginner, my first time to use Tableau. I want to perfrorm PCA from Python code in Tableau Dekstop. I got main ideas behind that process, TabPy is installed. My dataset is really big, having around 1000 + columns. I took a look on modyfing…
B.Germ
  • 85
  • 1
  • 3
  • 8
0
votes
1 answer

How to add a parser argument for a function argument '*argv'

I am trying to run the following code on my command line. I need to add an argument parser for my *argv argument in my Splitter function. When I try to run the code as follows I get an error: TypeError: splitter() got an unexpected keyword argument…
0
votes
1 answer

UPDATE: Error in command line: ValueError: Invalid file path or buffer object type:

I now have my function working as follows: Even though it executes the proper solution I end up with a huge error in my CMD line https://i.stack.imgur.com/PBTwz.png (ValueError: Invalid file path or buffer object type: < class…