From 33be2407c8ef074649604f7ea743088195476df1 Mon Sep 17 00:00:00 2001 From: Ashita Prasad Date: Sun, 23 Jun 2024 12:52:35 +0530 Subject: [PATCH] Update pandas-series.md --- contrib/pandas/pandas-series.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/pandas/pandas-series.md b/contrib/pandas/pandas-series.md index a6fe042..88b1235 100644 --- a/contrib/pandas/pandas-series.md +++ b/contrib/pandas/pandas-series.md @@ -256,8 +256,8 @@ Here one thing we should keep in mind that both the series object should have sa | **Functions** | **Description** | |--------------------------|---------------------------------------------------| -| `.head(n)` | return the first n elements of the series | -| `.tail(n)` | return the last n elements of the series | +| `.head(n)` | return the first n elements of the series | +| `.tail(n)` | return the last n elements of the series | ```python import pandas as pd @@ -282,6 +282,7 @@ dtype: int64 If you dont provide any value to n the by default it give results for `n=5`. ### Few extra functions + | **Function** | **Description** | |----------------------------------------|------------------------------------------------------------------------| | `.sort_values()` | Return the Series object in ascending order based on its values. |