![]() If you want to return different fields than what you input, you'll need to include a get_output_schema function in your script that defines the output and data types. Note: Date and DateTime must always be returned as a valid string. String in ISO_DATE_TIME format “YYYY-MM-DDT:HH:mm:ss” with optional zone offset. String in ISO_DATE format “YYYY-MM-DD” with optional zone offset. The following data types are supported: Data type in Tableau Prep Builder 'Supplies Group Encoded' : le.fit_transform(input), 'Competitor Type Encoded' : le.fit_transform(input), ![]() 'Opportunity Result Encoded' : le.fit_transform(input), 'Route To Market Encoded' : le.fit_transform(input), 'Region Encoded' : le.fit_transform(input), 'Supplies Subgroup Encoded' : le.fit_transform(input), You will also need to return the results in a pandas (pd.DataFrame) using supported data types.įor example to add encoding to a set of fields in a flow, you could write the following script: def encode(input): This will call your data from Tableau Prep Builder. When you create your script, include a function that specifies a pandas (pd.DataFrame) as an argument of the function. To disable the TabPy connection enter the following command For example -tabpy-connect-timeout-ms 900000.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |