You have just loaded a table you have never seen before. Before doing anything else with it, you want one small summary that says how big it is and what each column holds.
Write first_look(df). It takes a pandas DataFrame df and returns a tuple (shape, summary).
shape is the tuple (number of rows, number of columns) of df.summary is a new DataFrame with one row per column of df, in the same order as the columns of df. It has exactly these four columns, in this order:
column: the column's namedtype: the column's data type written as text, for example "int64", "float64", "bool" or "object"missing: how many values in the column are missingunique: how many different values the column holds, not counting missing valuessummary does not matter. The tests only read its values.unique equal to 0.object, and newer versions may call the same thing str. The tests create their text columns as object on purpose, so the expected answer is "object" on every version.df always has at least one column. It can have zero rows.