Currently, if the user answers yes to the drilldown prompt after using the "search" command but provides a value that is not in the returned dataframe, the program will return a NameError: '<name> exception and exit in an ugly manner, preventing the user from trying again.
Perhaps write a function that checks if the input is in the dataframe and in case of an exception, returns an error message and asks for input again.
Currently, if the user answers yes to the drilldown prompt after using the "search" command but provides a value that is not in the returned dataframe, the program will return a
NameError: '<name>
exception and exit in an ugly manner, preventing the user from trying again.Perhaps write a function that checks if the input is in the dataframe and in case of an exception, returns an error message and asks for input again.