No, this is not possible with dispatch. Unlike NamedTuples, for example, the names of columns in a DataFrame are not stored in the type information of the data frame.
You will need to use if...else constructs to solve this problem.
No, this is not possible with dispatch. Unlike NamedTuples, for example, the names of columns in a DataFrame are not stored in the type information of the data frame.
You will need to use if...else constructs to solve this problem.