Javascript Array Not Null In Pandas Python Functions With Variable Number