Skip to content

Instantly share code, notes, and snippets.

@NimishMishra
Created April 22, 2019 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NimishMishra/789e17a3d21c909970fab5f0c9cf32ff to your computer and use it in GitHub Desktop.
Save NimishMishra/789e17a3d21c909970fab5f0c9cf32ff to your computer and use it in GitHub Desktop.
def find_product_value(LATITUDE_ROW_NUMBER, LONGITUDE_COLUMN_NUMBER, SUBDATASET, FILEPATH):
dataset = read_dataset(SUBDATASET, FILEPATH)
if(LATITUDE_ROW_NUMBER < 0 or LONGITUDE_COLUMN_NUMBER < 0):
return -1
return dataset.iloc[LATITUDE_ROW_NUMBER][LONGITUDE_COLUMN_NUMBER]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment