support pandas.DataFrame as inputs in abstract api.