Compared to most of Europe, Mexico is quite child friendly in terms of free time amenities (the maternity/paternity leave system still sucks). Most restaurants and shopping malls will have no problem accepting even the youngest ones, and staff will make all they can to make you feel welcome. Furthermore, people will generally assist mothers or fathers traveling alone with a toddler even if traditionally child-rearing roles are female-specific.