Fix get_phi_opinion
Fix get_phi_opinion

There was a bug in get_phi_opinion that resulted in returning an array
of a wrong shape (a mean along an axis was calculated). This was fixed.

Also deleted the unused method to_df.

NLeSC/cptm,NLeSC/cptm