I am having problems passing a method in a function. I have already looked at this previous post.
How do I pass a method as a parameter in Python
Here is a simple example of what I tried.
def passMethod(obj, method):
return obj.method()
passMethod('Hi', lower)
In the end I will use this to help write a function dealing with GIS (Geographic Information Systems) data. The data is like an array. I want to add a new column NAME1 to the array. The array then has a method to call the column array.NAME1.
Regards, Alex