title: Using widget, how to select 1 or more column names and convert datatype on click of a button in jupyter?
body: <p>With the help of the following code from one of the threads, I am able to get the list of all the columns. However, I am not able to put together code to convert data types of selected columns.</p>
  <pre><code>box = widgets.VBox([columns_selectmultiple, button])
  display(box)
  
  def on_button_clicked(b):
      with out:
          print(&quot;Button clicked.&quot;)
  
  button.on_click(on_button_clicked, False)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/wKKxX.png" rel="nofollow noreferrer">Vertical Box with Column Names from a dataframe</a></p>