我从 python 中获得了以下 latex 格式的表格代码。但在 latex 上运行它时显示错误。我该如何解决这个问题?
\begin{table}[!htbp] \centering
\begin{tabular}{@{\extracolsep{5pt}}lcccc}
\\[-1.8ex]\hline
\hline \\[-1.8ex]
& \multicolumn{4}{c}{\textit{Dependent variable:}} \
\cr \cline{4-5}
\\[-1.8ex] & (1) & (2) & (3) & (4) \\
\hline \\[-1.8ex]
age & 0.003$^{***}$ & 0.002$^{***}$ & 0.002$^{***}$ & 0.001$^{***}$ \\
& (0.000) & (0.000) & (0.000) & (0.000) \\
baths & 0.073$^{***}$ & 0.070$^{***}$ & 0.072$^{***}$ & 0.070$^{***}$ \\
& (0.002) & (0.002) & (0.002) & (0.002) \\
condA & 0.546$^{***}$ & 0.541$^{***}$ & 0.546$^{***}$ & 0.493$^{***}$ \\
& (0.017) & (0.017) & (0.017) & (0.017) \\
condB & 0.266$^{***}$ & 0.259$^{***}$ & 0.265$^{***}$ & 0.240$^{***}$ \\
& (0.017) & (0.017) & (0.017) & (0.017) \\
condC & 0.116$^{***}$ & 0.116$^{***}$ & 0.115$^{***}$ & 0.111$^{***}$ \\
& (0.018) & (0.018) & (0.018) & (0.018) \\
const & 10.651$^{***}$ & 10.701$^{***}$ & 10.654$^{***}$ & 10.612$^{***}$ \\
& (0.018) & (0.018) & (0.018) & (0.018) \\
fireplace & 0.096$^{***}$ & 0.095$^{***}$ & 0.096$^{***}$ & 0.096$^{***}$ \\
& (0.003) & (0.003) & (0.003) & (0.003) \\
garage_area & 0.000$^{***}$ & 0.000$^{***}$ & 0.000$^{***}$ & 0.000$^{***}$ \\
& (0.000) & (0.000) & (0.000) & (0.000) \\
lakedist & & -0.002$^{***}$ & & -0.001$^{***}$ \\
& & (0.000) & & (0.000) \\
living_area & 0.000$^{***}$ & 0.000$^{***}$ & 0.000$^{***}$ & 0.000$^{***}$ \\
& (0.000) & (0.000) & (0.000) & (0.000) \\
lkdist & & & 0.063$^{***}$ & \\
& & & (0.006) & \\
median_commute & & & & 0.004$^{***}$ \\
& & & & (0.000) \\
\hline \\[-1.8ex]
Observations & 38,817 & 38,817 & 38,817 & 38,817 \\
$R^2$ & 0.809 & 0.811 & 0.809 & 0.815 \\
Adjusted $R^2$ & 0.809 & 0.811 & 0.809 & 0.815 \\
Residual Std. Error & 0.169(df = 38808) & 0.168(df = 38807) & 0.169(df = 38807) & 0.166(df = 38806) \\
F Statistic & 20501.924$^{***}$ (df = 8.0; 38808.0) & 18497.923$^{***}$ (df = 9.0; 38807.0) & 18282.218$^{***}$ (df = 9.0; 38807.0) & 17115.588$^{***}$ (df = 10.0; 38806.0) \\
\hline
\hline \\[-1.8ex]
\textit{Note:} & \multicolumn{4}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; $^{***}$p$<$0.01} \\
\end{tabular}
\end{table}