diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst new file mode 100644 index 0000000..1a43d89 --- /dev/null +++ b/doc/source/whatsnew/v3.0.0.rst @@ -0,0 +1,7 @@ +What is new in 3.0.0 +==================== + +Bug fixes +~~~~~~~~~ + +- Fixed a bug in groupby.apply that dropped the group key diff --git a/pandas/core/frame.py b/pandas/core/frame.py new file mode 100644 index 0000000..163ef97 --- /dev/null +++ b/pandas/core/frame.py @@ -0,0 +1,3 @@ +def head(self, n=5): + """Return the first n rows.""" + return self.iloc[:n]