Add raise value error comment in df function