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
4
votes
1 answer

How to safely delete an object property without losing the object edits?

In the Ontology Editor, I get warnings when I try to remove a property. See picture below. I want to keep the other columns or properties on the object without losing the edits. Is that possible? What's the requirement to do that?
Julio
  • 401
  • 4
  • 14
4
votes
1 answer

Function-Backed Action which creates a duplicates of an Object

Is it possible to write a TypeScript Function which programmatically creates copies of an object, without hardcoding references to the object properties being copied? I'm trying to enable a user workflow where the user is empowered to create copies…
L99
  • 169
  • 9
4
votes
2 answers

Palantir Foundry spark.sql query

When I attempt to query my input table as a view, I get the error com.palantir.foundry.spark.api.errors.DatasetPathNotFoundException. My code is as follows: def Median_Product_Revenue_Temp2(Merchant_Segments): …
user1185790
  • 623
  • 8
  • 24
4
votes
2 answers

Logging from pandas udf

I am trying to log from a pandas udf called within a python transform. Because the code is being called on the executor is does not show up in the driver's logs. I have been looking at some options on SO but so far the closest option is this one Any…
4
votes
1 answer

How can I process large files in Code Repositories?

I have a data feed that gives a large .txt file (50-75GB) every day. The file contains several different schemas within it, where each row corresponds to one schema. I would like to split this into partitioned datasets for each schema, how can I do…
4
votes
1 answer

What permissions are required to edit an object-backed Form in Palantir Foundry?

I have a Foundry Form backed by an object, being able to write changes to it. What permissions do I need to grant my colleagues for them to be able to edit the Form? Is editor on the Form enough, or do they also need to be editors on the object?
3yakuya
  • 2,622
  • 4
  • 25
  • 40
4
votes
1 answer

How to append excel to an existing dataset without losing additional columns in Foundry?

Context: Our business users receive excel sheets (.xlsx) via mail that they want to import into Foundry. We agreed on a given structure and naming convention for the files and tabs in order to simply drag and drop them into a specific folder and…
Patrick
  • 61
  • 3
4
votes
1 answer

Python unit tests for Foundry's transforms?

I would like to set up tests on my transforms into Foundry, passing test inputs and checking that the output is the expected one. Is it possible to call a transform with dummy datasets (.csv file in the repo) or should I create functions inside the…
4
votes
2 answers

install JAR package related to pyspark into foundry

we would like to install Spark-Alchemy to use it within Pyspark inside foundry (we would like to use their hyperloglog functions). While I know how to install a pip package, I am not sure what it is needed to install this kind of package. Any help…
pietro
  • 91
  • 3
4
votes
1 answer

Pyspark Getting the last date of the previous quarter based on Today's Date

In a code repo, using pyspark, I'm trying to use today's date and based on this I need to retrieve the last day of the prior quarter. This date would be then used to filter out data in a data frame. I was trying to create a dataframe in a code repo…
4
votes
3 answers

How can I hit a Foundry API from Code Repositories?

What is the correct way to hit an internal Foundry API from a Code Repository using, for example, a Python transform?
Adil B
  • 14,635
  • 11
  • 60
  • 78
4
votes
4 answers

Can we do image processing with Palantir Foundry?

I'm exploring the Palantir Foundry platform and it seems to have ton of options for rectangular data or structured data. Does anyone have experience of working with Unstructured Big data on Foundry platform? How can we use Foundry for Image…
4
votes
2 answers

How to integrate Palantir Foundry with Amazon S3 or HDFS

Within Palantir Foundry platform, I am working in Data integration. I need some help as I am new to Palantir software. Is there any documents, white-papers, links or tutorials on this topic? How do I integrate data from another source, for example…
3
votes
1 answer

Querying a live deployment (modeling objectives) from workshop or functions, but not samplewise (like with scenarios)

I have an optimization algorithm deployed as a live deployment. It takes a set of objects and returns a set of objects with potentially different size. This works just fine when I'm using the REST api. The problem is, I want to let the user of the…
3
votes
2 answers

Test fails in Foundry when using asterisk (*) for unpacking when creating a dataframe

I want to create a DataFrame in a fixture using the following code: @pytest.fixture def my_fun(spark_session): return spark_session.createDataFrame( [ (*['test', 'testy']) ], T.StructType([ …
Benji
  • 549
  • 7
  • 22
1
2
3
48 49