\documentclass{article}

% http://sourceforge.net/projects/pgfplots/
\usepackage{pgfplots}
\usepackage{array}
\usepackage{booktabs}

\pgfplotstableset{
    columns={dof,error1,{grad(log(dof),log(error1))}},
    columns/error1/.style={
        column name=$L_2$,
        sci,sci zerofill,sci subscript,
        precision=3},
    columns/dof/.style={
        int detect,
        column name=\textsc{Dof}},
    columns/{grad(log(dof),log(error1))}/.style={
		dec sep align,
        column name=slopes $L_2$,
        fixed,
        precision=1},
    every head row/.style={
        before row=\toprule,after row=\midrule},
    every last row/.style={
        after row=\bottomrule}}

\begin{document}
\pgfplotstabletypesetfile{pgfplotstable.example1.dat}
\end{document}
