One the first occasion she sits at his feet 'listening to what he said' (Luke 10: 39) in a kind of private tutorial indicating a departure from the traditionally female domestic sphere. Only Jewish men 'sat at the feet of' their Rabbi learning to be disciples.
'Oh, but there were only twelve disciples, and they were all men.' Yeah, right.
Then she moves from learning to adoration. How else would you respond after Jesus has raised your brother from death, and he is sitting there, larger than life, eating and drinking at a dinner party in Bethany. Mary's adoration is expressed in her pouring a pint of very expensive anointing oil (nard) over Jesus' feet and wiping them with her hair. Such waste.
But devotion to the Lord is never waste. The prophetic nature of her act is not lost on Jesus. He is Lord over life and death but will soon die himself. Things may be happening in a slightly strange order, that's all. Today his body is anointed for burial since on the day of resurrection, at dawn, as the women approach to do the same, it will be too late.