title: Python columns function
body: <p>I would like a function which will create columns through the modalities of the columns of a database.
  These created columns will calculate the percent of the modalities for each observation</p>
  <p><a href="https://i.stack.imgur.com/KNMRd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KNMRd.png" alt="enter image description here" /></a></p>