Having a pivot as below:
I was trying to drop the NaN values:
matrix = matrix.drop(index=None, columns=None)
Its not working.
ValueError: Need to specify at least one of 'labels', 'index' or 'columns'
Is there any other way to do this? Expected output: