KitDocumentation

ColumnFor

Simplifies writing the for loop needed to loop over each column in a dataframe. Looping over the columns may be an operation that users do infrequently, resulting in always re-searching for the syntax. ColumnFor simplifies this and writes the for loop syntax for the dataframe to loop over the columns. Additionally, you may choose whether or not to include an integer index variable in the loop.

Options

index: Specifies the index to use

Examples

Example 1 - Loop Over Columns with a For Loop

The ColumnFor kit creates a for loop that iterates through all columns in a dataframe. This gives you access to each column name as a string, which you can then use to apply transformations, checks, or other column-wise logic in a repeatable way.
#> ColumnFor
AFLEFT 
for column in bankTransactionsDf.columns: AFRIGHT