Concept:
Median is the middle value after arranging data.
Step 1: Total frequency.
\[
N = 2 + 4 + 1 + 3 = 10
\]
Step 2: Position of median.
\[
\frac{N}{2} = 5^{th} { and } 6^{th} { terms}
\]
Step 3: Cumulative frequency.
\[
x=1 \rightarrow 2,\quad x=2 \rightarrow 6,\quad x=3 \rightarrow 7,\quad x=4 \rightarrow 10
\]
The 5th and 6th terms lie in $x=2$.
Hence, the median is 2.