ENH: Pass DataFrame to link_func. Thanks to Guido Biele.