Complete the code to get the column names of the DataFrame.
column_names = df.[1]The columns attribute returns the column labels of the DataFrame.
Complete the code to get the index labels of the DataFrame.
row_labels = df.[1]keys() which do not return index labels.The index attribute returns the row labels of the DataFrame.
Fix the error in the code to access the DataFrame's columns attribute correctly.
cols = df.[1]()columns causing a TypeError.The columns attribute is not a method, so it should not have parentheses.
Fill both blanks to get the index and columns of the DataFrame as a tuple.
info = (df.[1], df.[2])
index and columns in the tuple.values or keys which do not return labels.The index attribute gives row labels, and columns gives column names.
Fill all three blanks to create a dictionary with keys as column names and values as index labels.
mapping = {col: df.[1][[2]] for col in df.[3]values instead of index for row labels.columns and index.This creates a dictionary where each column name maps to the first index label (position 0).
