[Tex/LaTex] Giving a good fancy look to a simple table

tables

Is there any trick to make this table look fancier or "nicer"?

\documentclass{article}




\begin{document}

\begin{table}
    \small
    \centering


        \begin{tabular}{|c|c|c|}
            \hline
            Home &  Real label & Predicted Label   \\ \hline
            \textbf{1}  & 4  & 2.3 \\ \hline
            \textbf{2}  & 2  & 3.6 \\ \hline
            \textbf{3}  & 3  & 3.4 \\ \hline
            \textbf{4}  & \textbf{?}  & 4.3 \\ \hline
            \textbf{5}  & 5  & 4.5 \\ \hline
            \textbf{6} & \textbf{?}  & 2.3 \\ \hline
            \textbf{7}  & 2  & 4.9 \\ \hline
            \textbf{8}  & \textbf{?}  & 4.3 \\ \hline
            \textbf{9}  & \textbf{?}  & 3.3 \\ \hline
            \textbf{10} & 4  & 4.3 \\ \hline

        \end{tabular}


    \caption{Example.}
    \label{}
\end{table}


\end {document}

enter image description here

Best Answer

two options with booktabs:

\documentclass{article}
\usepackage{booktabs}

\begin{document}

\begin{table}
    \small
    \centering
        \begin{tabular}{ccc}
            \toprule
            Home &  Real label & Predicted Label   \\
            \midrule
            \textbf{1}  & 4  & 2.3 \\ 
            \textbf{2}  & 2  & 3.6 \\ 
            \textbf{3}  & 3  & 3.4 \\ 
            \textbf{4}  & \textbf{?}  & 4.3 \\ 
            \textbf{5}  & 5  & 4.5 \\ 
            \textbf{6} & \textbf{?}  & 2.3 \\
            \textbf{7}  & 2  & 4.9 \\ 
            \textbf{8}  & \textbf{?}  & 4.3 \\ 
            \textbf{9}  & \textbf{?}  & 3.3 \\ 
            \textbf{10} & 4  & 4.3 \\ 
            \bottomrule
        \end{tabular}
    \caption{Example.}
    \label{}
\end{table}

\begin{table}
    \small
    \centering
        \begin{tabular}{ccc}
            \toprule
            Home &  Real label & Predicted Label   \\
            \cmidrule(lr){1-1} \cmidrule(lr){2-2} \cmidrule(lr){3-3}
            \textbf{1}  & 4  & 2.3 \\ 
            \textbf{2}  & 2  & 3.6 \\ 
            \textbf{3}  & 3  & 3.4 \\ 
            \textbf{4}  & \textbf{?}  & 4.3 \\ 
            \textbf{5}  & 5  & 4.5 \\ 
            \textbf{6} & \textbf{?}  & 2.3 \\
            \textbf{7}  & 2  & 4.9 \\ 
            \textbf{8}  & \textbf{?}  & 4.3 \\ 
            \textbf{9}  & \textbf{?}  & 3.3 \\ 
            \textbf{10} & 4  & 4.3 \\ 
            \bottomrule
        \end{tabular}
    \caption{Example.}
    \label{}
\end{table}

\end {document}

enter image description here

Related Question