diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst index 0841f3354d160..db813e7cf55a1 100644 --- a/doc/source/comparison_with_r.rst +++ b/doc/source/comparison_with_r.rst @@ -295,7 +295,7 @@ In ``pandas`` the equivalent expression, using the }) grouped = df.groupby(['month','week']) - print grouped['x'].agg([np.mean, np.std]) + print(grouped['x'].agg([np.mean, np.std])) For more details and examples see :ref:`the groupby documentation @@ -505,4 +505,4 @@ For more details and examples see :ref:`categorical introduction ` .. cast: http://www.inside-r.org/packages/cran/reshape2/docs/cast .. |factor| replace:: ``factor`` -.. _factor: https://stat.ethz.ch/R-manual/R-devel/library/base/html/factor.html \ No newline at end of file +.. _factor: https://stat.ethz.ch/R-manual/R-devel/library/base/html/factor.html