I want to read a parquet file with only certain columns and certain rows to formhandler in Gramex.
How to read specific data(i.e., rows and columns) from a parquet file in gramex formhandler?
55 views Asked by Abijith Hebbar Kattangeri At
1
Suppose you have
city.parquet, and you want to:countryisJapan.latandlong,APPROACH #1 - Client-side: Use this configuration:
Now use the URL
/data?country=Japan&_c=lat&_c=long. This will filter by the required rows and columns.APPROACH #2 - Server side: Use this configuration
Now the URL
/datareturns only the required rows and columns.When to use which approach:
If you want the user or the application to control the rows and columns, use the client-side approach.
If you want to securely share only the required data, use the server-side approach.