Ech, I wouldn't want to take a child that young to a funeral of someone they didn't even know either. I wouldn't want to take a child that young to a funeral of someone they did know, tbh.
I think a sympathy/condolences card and maybe some flowers or a donation to their charity, whichever is appropriate, would be a perfectly reasonable alternative to actually going. Take DD elsewhere for the day.