Created
          November 15, 2018 12:43 
        
      - 
      
 - 
        
Save gcsfred/a68e6d7d4c01ba6ba6bd8e178b805578 to your computer and use it in GitHub Desktop.  
    dataframe using pandas_udf and one hot encode
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | dataframe = dataframe.withColumn('ACOLUMN_not_null', pandas_not_null('ACOLUMN')) | |
| dataframe = one_hot_encode(dataframe, "ACOLUMN_not_null", "ACOLUMN_one_hot") | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment