Complete the code to get a statistical summary of the DataFrame.
summary = df.[1]()The describe() method provides a quick statistical summary of numerical columns in a DataFrame.
Complete the code to include all columns (numeric and non-numeric) in the summary.
summary = df.describe(include=[1])Using include='all' makes describe() show statistics for all columns, including text.
Fix the error in the code to get the summary of a DataFrame named data.
summary = data.[1]()The correct method name is describe(). Other options are not valid pandas methods.
Fill both blanks to create a summary that includes only categorical columns.
summary = df.describe(include=[1], exclude=[2])
Including 'object' selects text columns, and excluding 'number' removes numeric columns, so only categorical columns remain.
Fill all three blanks to create a summary showing only columns of type float64.
summary = df.describe(include=[1], exclude=[2], percentiles=[[3]])
Including 'float64' selects float columns, excluding 'int64' removes integers, and setting percentiles to [0.5] shows the median only.