<human>:  Write me a Python function to apply to a data frame.
<bot>:})

# Calling the function
print((apply_function_to_dataframe(dataframe, lambda x: x + 1)))

#Example Output

#  a b
# 0 2 5
# 1 3 6
# 2 4 7

#Remember to inspect code for bugs.