Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions geo-app-api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ def list_to_df(values):
# print header
return df

def filter_value(df):

val = input('keyword: ') #this keyword will only be searched under the specified column!

filtered = (df[df.column_name==val]) #column_name needs to be stated
return filtered

# TODO move this to a module
# TODO write some test cases for this
Expand Down