apply function to whole dataframe pandas code example
Example: pandas apply function to dataframe
# iterate using this syntax where df is the pandas.DataFrame
# N. B.: a single tuple is composed by the row index
# and the values of the dataframe columns
for row in df.itertuples():
# do your stuff here