title: Pandas Requires a Str object but received a float
body: <p>I have a dataframe that looks like this:</p>
  
  <pre><code>df_all_data:
  
                                        everything    file_names
  
  0                                            ï»¿  v_merged.sql
  1                   CREATE VIEW [dbo].[v_merged]  v_merged.sql
  2                                             AS  v_merged.sql
  3                                WITH [stage] AS  v_merged.sql
  4                                              (  v_merged.sql
  5                                 SELECT --[row]  v_merged.sql
  6                          [fssa_legacysystemid]  v_merged.sql
  7                                        ,[A_ID]  v_merged.sql
  8                                  ,[vendorcode]  v_merged.sql
  9                           ,NULL AS [lpinumber]  v_merged.sql
  </code></pre>
  
  <p>I am receiving the following error:</p>
  
  <pre><code>TypeError: ("descriptor 'startswith' requires a 'str' object but received a 'float'", 'occurred at index everything')
  </code></pre>
  
  <p>I am not sure what I am doing wrong? I thought my everything column is a <code>str</code> or <code>object</code> type?</p>
  
  <p>Edit #1:</p>
  
  <p>This is the code that caused this error:</p>
  
  <pre><code>df_all_data = df_all_data[~df_all_data.applymap(lambda x : str.startswith(x,'--')).any(1)]
  </code></pre>