Let $V$ be a vector space over $\mathbb{C}$. Two self-adjoint, commutable linear operators $\xi$ and $\eta$ act on it. Both of their eigenvectors form a complete set of $V$, but $\xi$'s eigenvalues are discrete, while $\eta$'s are continuous. How is this possible? I mean how is it possible that the same vector space has both an uncountably infinite basis and a countably infinite basis? This is taken from Dirac's Principles of Quantum Mechanics, he uses these kinds of operators without considering this problem, which buggles me.
While thinking about this, I've realized, that the problem of Fourier-series is an example of the same vector space having two bases with different cardinality. A function which equals its Fourier-series can be viewed as a vector expanded in a continous basis in time domain and in discrete basis in frequency domain.
So this problem is definitely not a contradiction, there exist vector spaces with countable and uncountable basis at the same time. Still, if a vector space is countably finite dimensional there shouldn't be uncountably many independent vectors in it, and conversely, if it is uncountably infinite dimensional, then a countably infinite set of vectors shouldn't be enough to span it.
Last but not least we are considering a closed space equipped with a scalar product, so infinite sums of vectors are allowed.
UPDATE: I've asked the same question on physics.stackexchange.com and posted an answer for myself there with the help of the answers I got here and from one of my teachers (link). It contains the same info about the "denseness" Asaf Karagila suggested. However, there is an interesting part (at least for me) namely the Fourier series expansion of a function derived as a kind of basis transformation.