melt() (Pandas)

pd.melt() reshapes a wide DataFrame into a long, tidy one by collapsing several columns into two: a 'variable' column holding the old column names and a…