Yes, the sentence "I didn't expect that from you" is grammatically correct.
It can be rephrased in several ways, such as:
- "I was surprised you did that."
- "I didn't think you would do that."
- "That was unexpected from you."
The meaning of the sentence implies that the speaker is expressing surprise or disappointment regarding the actions or behavior of the person they are addressing. It suggests that the speaker had a different expectation