Builds a contingency table at each combination of factor levels.
sdf_crosstab(x, col1, col2)
A DataFrame containing the contingency table.
A Spark DataFrame
The name of the first column. Distinct items will make the first item of each row.
The name of the second column. Distinct items will make the column names of the DataFrame.