The Lavrentiev's theorem is stated as follows
Let $K \subset \mathbb{C}$ be a compact set. Then every continuous function $f: K\to \mathbb{C}$ can be approximated uniformly by polynomials if and only if $K$ has no interior and $\mathbb{C}/ K$ is connected.
My question is, suppose $K$ is a one-dimensional curve on complex plane, under what condition every analytic function $f:K\to \mathbb{C}$ and its derivative $f'$ can be uniformly approximated by polynomials? That is to say, under what condition, we have $\forall f\in C^1(K, \mathbb{C}), \epsilon>0, \exists c_1, \ldots, c_N\in \mathbb{C}$ such that $\|f(z)-\sum_{i=1}^N c_k z^k\|_{\infty} < \epsilon$ and $\|f'(z)-\sum_{i=1}^N c_k k z^{k-1}\|_{\infty} < \epsilon$.
I saw there is a similar question on the extension of Stone-Weierstrass theorem. I'm wondering how this could be generalized to complex case. Any reference would also be good for me.