How to remove duplicates rows from foundry fusion sheets - palantir-foundry

How to remove duplicate rows from foundry fusion sheets?
For example:
Department
course
CSE
python
CSE
java
CSE
python
IT
java
CSE
java
IT
java
then after removing duplicates expected output would be:
Department
course
CSE
python
CSE
java
IT
java

Foundry fusion is not a data transformation tool, so the short answer is you can't.
If you need to do these types of filtering and manipulation, there are plenty of other tools in the platform that let you manipulate data: Contour, Transforms, ...

Related

Google Cloud Platform - Data Fusion - Wrangler

I am trying to join two input sources in the Google Cloud Platform, one from BigQuery and the other from Google Cloud Storage which contains a .csv file. I see using a joiner is the best option.
But I am curious whether the same can be achieved using the table lookup: column 'table' directive. The input records will be from BigQuery, and the 'table' will refer to the .csv file in Google Cloud Storage. Is it possible to achieve this with just Wrangler without using joiner?
Absolutely yes, you can use Wrangler instead of joiner to connect two data sources, you can apply basic transformations and export this information into a sink in Google Cloud Platform.
For your specific scenario using BigQuery for the input records and the 'table' from the .CSV file contained in Google Cloud Storage please check this tutorial which contains the specific steps on how to achieve it.

Read and Write to Google Sheets using JSON backend

I am trying to accomplish the same as the GitHub link, anyone has experience and can suggest a successful best practice?
Google Apps Script to read JSON and write to sheet
Found it, for Python Python Bookshelf App from a previous stackoverflow article: Reading & Writing JSON file on Google Cloud Storage using Python, I believe there is the same for Java, have to review a bit more Java on Google Cloud Platform

Is there a Socrata API for reading a site's catalog?

Is there a Socrata API for reading a site's catalog of datasets?
For example, for Boston, is there an API equivalent of this page?
Try this
https://data.cityofboston.gov/data.json
That should have every dataset in JSON format.
There is also a (beta) API available for catalog reading/searching, which may be easier to filter/parse than the data.json file (but either would work!). You can find information about this here: http://labs.socrata.com/docs/search.html.

How can I get business reviews from google maps using google-maps-api?

When I search for food (for example) in google maps, i get a bunch of businesses, each one having reviews... like in Yelp. I am trying to get those business' reviews so I can use them as training data to my NLP review classifier.
... and also does the api support only javascript? can i do something to use the API with Java?
Google dont make this available by any API.
v3 of the javascript api - only supports javascript - its designed to run in a web-browser. So makes absolutely no sense to run in java. (although can have a browser in a java app)
... other apis can be called from java.

Access the Google Maps API within Powershell

I try to program a name generator script for various sample data entry jobs. What I need to do is the following:
Access the Google Maps Api and give me a random adress (in a specific city if possible)
Return Street and Zip Code (and City (see above))
Is that possible in Powershell? I was thinking about using the IE ComObj and just parse the dom of Google Maps but that seems so wasteful.
Any help would be great! Thanks :)
I'm not familiar with the Google maps API however it looks like you are just calling web services.
You can interact with web services in PowerShell. If the service communicates with SOAP you can use the New-WebServiceProxy cmdlet. If it is a REST service you can use the System.Net.WebRequest .NET class, here's an example. As noted in the linked answer, you will probably want a JSON library to process the service response. Also, this fella posted a JSON module on PoshCode that you might want to take a look at.
Also, a new cmdlet is being introduced in PowerShell V3 Invoke-RestMethod, which is currently in community technical preview...
Google map provides REST API's to use them in Powershell, you can call these using an Invoke-RestMethod cmdlet to get your task done. Infact I wrote a Googlemaps module in powershell and you can get the same from Powershell Gallery