Questions tagged [palantir-foundry]

Palantir Foundry is a web-based data analytics and decision modeling SaaS platform. Use this tag for questions about building your own models in Foundry using Python, R, or SQL or working with the Foundry API.

Palantir Foundry is a web-based data analytics and decision modeling SaaS platform. Use this tag for questions about building your own models in Foundry using Python, R, or SQL or working with the Foundry API.

731 questions
2
votes
1 answer

How do I update an array property in a Palantir Foundry Ontology edit Function?

I want to modify an array property on an Object using an Ontology Function (a.k.a FoO), but I'm seeing the following error: [typescript] Property 'push' does not exist on type 'readonly string[]'. Looking at the generated TypeScript definition for…
hjones
  • 168
  • 1
  • 8
2
votes
2 answers

Palantir typescript order rows and filter

I have already created a function that allows me to have a table obtained through groupby and aggregation function. Since the column I have grouped has so many values, I would like to sort descending the rows (by the "percentage" column, created by…
2
votes
1 answer

How to write Foundry dataset to XML file in PySpark?

I found that on Foundry, we can use databricks:spark-xml to read a dataset containing one or many XML files. But I cannot find a way to write a Foundry dataset to a dataset containing XML file (write every row to a single XML file)? I have followed…
huy
  • 1,648
  • 3
  • 14
  • 40
2
votes
1 answer

Code Workbooks - File not found using hadoop_path

I have a python transform in code workbooks that is running this code: import pandas as pd def contents(dataset_with_files): fs = dataset_with_files.filesystem() filenames = [f.path for f in fs.ls()] fp = fs.hadoop_path + "/" +…
aturc
  • 1,298
  • 12
  • 18
2
votes
2 answers

How do I insert free text/arrows into a bar chart in Contour to identify specific events that happened on a specific date?

I have a bar chart with exact dates over several years (ex: January 1st, 2016 to February 30th, 2019) on the x-axis and the number of events per day on the y-axis (ex: number of gatherings). On this bar chart, I am trying to also indicate certain…
goldenrat
  • 25
  • 4
2
votes
1 answer

How do I sort hierarchical data in Palantir?

Lets say I have flight data (from Foundry Academy). Starting dataset: Date flight_id origin_state carrier_name jan 000000001 California delta air jan 000000002 Alabama delta…
2
votes
2 answers

How to surface different Workshop pages to different user groups?

I have a Workshop module that addresses different user groups. Hence I would like to surface different pages to different groups by default. Indeed I see an option to control the default page selection based on a variable. My first thought was to…
Benjamin Ahnert
  • 101
  • 1
  • 6
2
votes
1 answer

In Palantir Foundry's Data Connection tool, what's the difference between the transaction type options?

When setting up a file-based sync in Data Connection, I see there are a few different options for 'Transaction Type'. What's the difference between them? When might I use them?
hjones
  • 168
  • 1
  • 8
2
votes
1 answer

Dataset in Foundry has a marking that appeared from nowhere

I have a dataset in Foundry that has a marking, but none of its input datasets have a marking. How did the marking appear on my dataset?
DHerls
  • 827
  • 9
  • 21
2
votes
0 answers

Access denied in S3 sync

We have an S3-Direct cloud-based Source set up and just added our first Sync. It's designed to pick up files within an S3 bucket, crawling through several subfolders. When running the Sync, it fails at the 'Fetch data' stage with a 403 Access denied…
Benjamin Ahnert
  • 101
  • 1
  • 6
2
votes
2 answers

How to upload images or icons to use in Slate?

If Blueprint doesn't have a stock icon that is appropriate for my Slate design, how can I upload an image to Slate myself that will suit my design?
Mike
  • 21
  • 1
2
votes
1 answer

Rank, Dense Rank functionality in typescript

I am trying to implement a rank/dense rank functionality using typescript on a large set of data. Is there a library function or an easy way to implement this in foundry typescript.
2
votes
1 answer

How to manually change job specs of a dataset?

Noticed a new artefact in the Foundry system: Dataset View, and after some testing noticed it can be changed to a regular dataset by deleting its job spec and refering to it as an output in a transformation. The jobspec is then rebuilt during the…
dm2
  • 4,053
  • 3
  • 17
  • 28
2
votes
1 answer

HTML Request in Typescript repository

I am using Functions in Foundry and using for this purpose Typescript. I am wondering if it is possible to make a HTML Request inside a specific function. I have already checked every HTML request method I know for JS…
2
votes
1 answer

Is there a way to create dynamic parameter?

I have filter for my dataset: Keep rows where date is on or after $filter_date Can I set parameter $filter_date to be 60 days (or 8 weeks or 2 months) away from today?