`.filter` method made more general to allow for further development of function application in the future e.g. apply a function to a column based on its name, not its value