Exercise

Cross-tabulation

Cross-tabulation can help identify how observations occur in combination.

Using the salaries dataset, which has been imported as a pandas DataFrame, you'll perform cross-tabulation on multiple variables, including the use of aggregation, to see the relationship between "Company_Size" and other variables.

pandas has been imported for you as pd.

Instructions 1/3

undefined XP
  • 1
    • Perform cross-tabulation, setting "Company_Size" as the index, and the columns to classes in "Experience".
  • 2
    • Cross-tabulate "Job_Category" and classes of "Company_Size" as column names.
  • 3
    • Update pd.crosstab() to return the mean "Salary_USD" values.