CLN: Clean nanops.get_corr_func
Small cleaning (instead of creating a dictionary of functions and then returning only one, just return the one)
> do we have tests for invaid method names?

There's testing at least for DataFrame.corr (test_corr_invalid_method in /tests/frame/methods/test_cov_corr.py) but not this function directly AFAIK thanks