I have the following table in my document
\begin{table}\centering
\begin{tabular}{llrr}
\toprule
Name & Country & Image tiles & Building geometries \\
\midrule
Kalola & Tanzania & 47 & 340 \\
Mwantende & Malawi & 61 & 237 \\
Dodoma & Tanzania & 71 & 964\\
\bottomrule
\end{tabular}
\caption{Validation sets} \label{tb:validation_sets}
\end{table}
In the resulting document, it takes up the entire page which looks ridiculous:
Just a few pages later, I have a table with the exact same structure, only more rows:
\begin{table}\centering
\begin{tabular}{llrr}
\toprule
Name & Country & Image tiles & Building geometries \\
\midrule
Babati & Tanzania & 58 & 192 \\
Chunya & Tanzania & 16 & 212 \\
Idunda & Tanzania & 64 & 389\\
Kambikatoto & Tanzania & 39 & 921\\
Lugufu & Tanzania & 126 & 660\\
Lunyala & Tanzania & 30 & 390 \\
Mgandu & Tanzania & 37 & 628\\
Mufindi & Tanzania & 84 & 495 \\
Tunduru & Tanzania & 17 & 298\\
Usinga & Tanzania & 86 & 167\\
Chifungwe & Zambia & 57 & 168 \\
Chilubula & Zambia & 112 & 384\\
Mpika & Zambia & 50 & 196 \\
Dedza & Malawi & 33 & 307 \\
Kasungu & Malawi & 50 & 279\\
Mangochi & Malawi & 23 & 286 \\
\bottomrule
\end{tabular}
\caption{Test sets} \label{tb:test_sets}
\end{table}
That one renders just as I would expect:
Question: What is causing the first, smaller table to take up the whole page and what do I need to change so that it behaves like the second table?
I have looked at a similar question but the solution didn't work for me.
Thank you for any advice!


\clearpagebut hard to guess with no code shown. – David Carlisle Jan 26 '21 at 12:52\clearpagewhich is exactly the point that you force this output. The "clear" in\clearpagemeans "clear the queue of pending floats", so any table which has not yet been found a good position is dumped into a float page to force it to appear at this point. You get what you ask for. – David Carlisle Jan 26 '21 at 14:18