Data Frame Function In Python Practice