Using static type checking on
import numpy as np import pandas as pd def c(x: pd.DataFrame) -> np.ndarray: return x.values
gives me