File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,7 @@ def with_columns(
168168        By passing expressions, iteratables of expressions, or named expressions. To 
169169        pass named expressions use the form name=Expr. 
170170
171-         Example usage: 
172- 
173-             The following will add 4 columns labeled a, b, c, and d. 
171+         Example usage: The following will add 4 columns labeled a, b, c, and d:: 
174172
175173            df = df.with_columns( 
176174                lit(0).alias('a'), 
@@ -179,11 +177,11 @@ def with_columns(
179177                ) 
180178
181179        Args: 
182-             * exprs: Name of the column  to add. 
183-             ** named_exprs: Expression to compute  the column.  
180+             exprs: Either a single expression or an iterable of expressions  to add. 
181+             named_exprs: Named expressions in  the form of ``name=expr``  
184182
185183        Returns: 
186-             DataFrame with the new column . 
184+             DataFrame with the new columns added . 
187185        """ 
188186
189187        def  _simplify_expression (
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments