There is nothing special about the symbol $x$. Unfortunately, there's a certain bias to calling $f$ the function and $x$ the variable, but really it should never1 matter how variables are labelled as long as it's done consistently.
So in particular, if you write
$$
f(x,y) = \tfrac{y}{x}
$$
it means exactly the same thing as
$$
f(y,x) = \tfrac{x}{y}.
$$
Note that $x$ and $y$ aren't actually part of the definition: this equation defines only $f$, and introduces two new “private” symbols, locally, to do that. I could also have written
$$
f(\mathscr{Y},\Xi) = \tfrac{\Xi}{\mathscr{Y}}.
$$
Now, what you're doing is actually
$$
f'(x,y) \equiv \tfrac{\partial}{\partial y} f(x,y),
$$
and that again is the same as
$$
f'(y,x) \equiv \partial_x f(y,x) = \partial_x \tfrac{x}{y}.
$$
You certainly won't doubt that this is $\tfrac1y$... although again that statement is meaningless without context: really I should say that $f'(y,x) = \tfrac1y$, and therefore $f'(x,y) = \tfrac1x$.
1Alas, in many applications of maths this is widely neglected! In physics, two equations may be interpreted as something completely different depending on how the variables are labelled.