KitDocumentation

RowFor

Simplifies writing the for loop needed to loop over each row in a dataframe. Looping over the rows may be an operation that users do infrequently, resulting in always re-searching for the syntax. RowFor simplifies this and writes the for loop syntax for the dataframe to loop over the rows. 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 - Iterate Over Rows in a Dataframe

Use the RowFor kit to create a for-loop that iterates over each row of the dataframe. This structure is helpful when you need to write custom row-level logic.
#> RowFor
AFLEFT 
for row in appleStockDf.iterrows(): AFRIGHT