title: Python: Pandas Dataframe How to Convert timedelta column to float column
body: <p>I have a column in a dataframe that has datatype [timedelta64[ns]].  I'm trying to convert it to a float. </p>
  
  <p>This is a sample table: </p>
  
  <pre><code>ColA
  227 days 00:00:00.000000000
  316 days 00:00:00.000000000
  226 days 00:00:00.000000000
  153 days 00:00:00.000000000
  </code></pre>
  
  <p>Below is my desired table with datatype as float: </p>
  
  <pre><code>ColA
  227 
  316  
  226  
  153  
  </code></pre>
  
  <p>This is the code I tried: </p>
  
  <pre><code>df_EVENT5_24['ColA'] = df_EVENT5_24['ColA'].astype(float)
  </code></pre>
  
  <p>This is the error: 
  TypeError: cannot astype a timedelta from [timedelta64[ns]] to [float64]</p>