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
3 answers

In Pyspark how do I compare two columns and use x whenever they are not the same

How would I compare two columns and say that I want to use x column when they are not the same This is what I'm doing right now. SUMMARY = SUMMARY.withColumn("type_description", F.when((SUMMARY.type_description != SUMMARY.rename_description),…
confused101
  • 99
  • 1
  • 7
2
votes
1 answer

Is it possible to revert a Code Workbook to a previous version?

I'd like to recover an accidentally modified workbook to a previous version.
amy.bananagrams
  • 100
  • 1
  • 6
2
votes
1 answer

Use of templates to switch between input versions of data and analyze outputs in palantir-foundry

We are looking to build a single pipeline within a code repository that cleans, harmonizes, and transforms data to features of interest. We would like to apply that single pipeline code on different inputs and then test how the outputs look. For…
LeslieKish
  • 414
  • 1
  • 4
  • 11
2
votes
2 answers

How can i prefield values in a multiselect box in FoundrySlate

I am generating values in runtime so after every reload the values in the multiselect box is getting blanked. I am taking the values from a function. so I want to prefield that multiselect value. How can we do that?
Sweta
  • 21
  • 1
2
votes
1 answer

Snapshotting of Contour results in Palantir Foundry

I'm preparing a Data quality Report based on couple Contour analyses and would like to do a daily snapshots of the reported incorrect records. Then I want to show these daily numbers as another report in the same dashboard to see the progress on the…
Hrusilov
  • 654
  • 5
  • 9
2
votes
2 answers

How do I parse large compressed csv files in Foundry?

I have a large gziped csv file (.csv.gz) uploaded to a dataset that's about 14GB in size and 40GB when uncompressed. Is there a way to decompress, read, and write it out to a dataset using Python Transforms without causing the executor to OOM?
vanhooser
  • 1,497
  • 3
  • 19
2
votes
0 answers

PCA on a PySpark-Dataframe with Vector Assembling

I want to perform a PCA inside a function where a PySpark dataframe (Dim: 41 x 1707, long, double) goes in as an input parameter. The Vector Assembler seems to work, but after that I only get errors: def pca(pyspark_df): assembler =…
pinoyboy90
  • 21
  • 2
2
votes
2 answers

Utilizing Foundry APIs, how do you get the number or rows and columns for a dataset?

I'm looking to retrieve the number of records and columns within a dataset utilizing the APIs within Foundry. One of the APIs that I found that seems to display the number of records is ".../monocle/api/table/stats", however I don't see how to pass…
Robert F
  • 187
  • 5
2
votes
1 answer

TypeScript: return only first value of an ObjectSet

I am pretty new to TypeScript and especially to the custom Palantir implementation for Object(Sets). What I am trying to archive: I'd like to filter an ObjectSet down to some specific values. Then I'd like to return the first of these values. In…
2
votes
2 answers

Can you preview/run Palantir Foundry Transforms locally in VS Code

After I run ./gradlew idea the build is succesful and I have been able to push code changes to the cloud via git very easily. However, I've yet been able to preview or run any of the .py transform files. Does anyone know if this is possible? This is…
Bigmoose70
  • 453
  • 6
  • 15
2
votes
1 answer

how to apply schema of one dataframe to another empty dataframe using rest call

I have two datasets in foundry : df1 & df2, df1 has data with a schema. the df2 is the empty dataframe with no schema applied. Using data proxy i was able to extract the schema from df1 { "foundrySchema": { "fieldSchemaList": [ {... } …
2
votes
0 answers

How To Extract Palantir-foundry Data From Custom Python In My Computer

We are trying to read huge files. But we are not able to extract huge palantir-foundry files data either from tableau live connection or from power BI. So we are trying to connect to Palantir from python. Can any one suggest any other way to extract…
Divya M
  • 43
  • 1
  • 8
2
votes
2 answers

How do you import and use Spark-Koalas in palantir-foundry

How can I -- in Palantir-foundry -- import and use the "Koalas: pandas API for Apache Spark" open source python package. I know that you can import packages that don't exist through Code Repo and have done this, can I do this same process for Koalas…
2
votes
1 answer

Can the Foundry Object View Markdown widget open links in a new tab?

Is it possible to configure links defined in the Object View Markdown widget to open in a new tab by default (rather than making people cmd+click)?
kevpl541991
  • 161
  • 4
2
votes
1 answer

Is it possible to define a handlebars inside another handlebars in Slate within Palantir-Foundry?

I want to draw a chart in foundry slate. I want to define x axis and y axis as follows: X = "{{fchart.{{w_widget.selectedValue}}}}" Y = "{{fchart.summation}}" I need to dynamically get the value of w_widget.selectedValue by defining it within…