Wednesday, April 18, 2018

Advanced Analytics of Tableau with Python

Just a small overview of Tableau. Tableau is a famous and present trending Business Intelligence tool used to analyze and visualize the data easy and fast. Tableau can use by academic researchers, business, government organization for visual data analysis. In this blog, we learn about Advanced analytics of Tableau with Python.
About Python:
Python is a higher programming language with dynamic semantics.  It is another Object Oriented Programing language. It has as excellent string handling. Nowadays Python is used to boot the Software Development time by proving readable. Python has grown into a mature language with several implementations.
Learn more about this technology Tableau Online Course Bangalore in this overview
Advanced Analytics of Tableau with Python:
Tableau introduces R capabilities after that, it is the time for new Tableau now comes and supports for Python. This is the important news for a data scientist, who use the reports to visualize results with some more advanced processes. Now bring analytics to much closer to the end users. Through this blog know how to increase the analytics of Tableau with Python?
Basic Functionalities:
If we want to enable the connection from Tableau, you need to create a running Reserve session. But the Python integration requires you to set-up install TabPy Server. The set-up has some instructions while installing Python 2.7 with Anaconda, installing TabPy.
When we come to functionalities the Python integration is similar to R integration. Before going to know some examples, take a little moment to know, how we can use Python in Tableau, one remark that it is not possible to use both  Python integration as well as R integration. There is one connector is available, so in case you want to use both, connect R to Python or Python to R. TabPy functionalities are not supported by the Tableau Public.
Some example is given below.
  • Using a fitted model to predict
  • Passing data to Python
  • Saving and loading a model
  • Using a fitted model to predict
  • Passing user-defined parameters to Python
Iris dataset can be used that is already present in sci-kit-learn and then create a model by using the Navie Bayes estimator. The dataset contains 5 columns (petal width, sepal width, petal length, sepal length and the category). The first thing we want to do visualization of the iris dataset using only 2 attributes in the 4 attributes and color coding the category.Advanced Analytics of Tableau with Python
After the process is completed, we have the data what you want, and ready to call the Python functionalities. However, calculations can complete for every individual row in the dataset. In Tableau, make sure that we are not working with aggregated measures. Up to this, I hope you get little bit knowledge of Advanced Analytics of Tableau with Python.Advanced Analytics of Tableau with Python
We have to create a newly calculated field using Python functionalities and define SCRIPT_XX, where XX indicates the return data. The available options are INT, BOOL, REAL, STR. There are some conditions we can consider while calling Python:
  1. From calculations, only one calculated field can be returned. Suppose we want to have several values to return, in that case, we need to create a delimited string and to access the desired content define other calculated.
  2. If you give the input rows as 20, we will get a same number of records as per the input.
  3. Be careful what dimensions are being used for calculations, for each partition Tableau call TabPy.
Custom parameters:
Suppose we want to allow the end-users to change the input to the particular function and to be able to visualize different scenarios(worst case, best case). Create standard parameters and add to the function call. Careful about two things while using custom parameters.
  1. The parameters are passed to python like a vector, not like a scalar
  2. If any changes will occur in parameters we have to recalculate of calculated parameters. So, be careful to modify the parameters. Finally, we know some applications of advanced analytics of Tableau with Python.
We know some basic applications the Python integration with Tableau. Python increases the capabilities of our dashboard. To make this work seamless we require advance knowledge of Tableau table calculations.Read More At Tableau Online Course

No comments:

Post a Comment