This is what I don't understand of society. If someone is bad at something and I think it is important, then I force them to learn it. They will hate it more in the future. All those hours wasted instead of letting her doing what she is good at, and improving that skill.
Just for the records, few years ago it was important for the woman to know how to do the house work and things like cooking and sew. I see no difference with the coding thing. She has tried, she doesn't like it and she is bad at it. Let her move on and do something she will enjoy.