Skip to content

Commit 7cd0ec1

Browse files
Update Pandas_Series_Vs_NumPy_ndarray.md
1 parent f877018 commit 7cd0ec1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/pandas/Pandas_Series_Vs_NumPy_ndarray.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Both NumPy ndarray and Pandas Series are essential tools for data manipulation i
66

77
## NumPy ndarray
88

9-
NumPy is short form for Numerical Python, provides a powerful array object called `ndarray`, which is the backbone of many scientific and mathematical Python libraries. ndarray is also called n-dimensional array. Indexing in ndarray is integer based indexing.
9+
NumPy is short form for Numerical Python, provides a powerful array object called `ndarray`, It is very important for many scientific and mathematical Python libraries. ndarray is also called n-dimensional array. Indexing in ndarray is integer based indexing (like arr[0], arr[3], etc.).
1010

1111
Features of NumPy `ndarray`:
1212

@@ -31,19 +31,19 @@ Output:
3131
- When you need to perform mathematical operations on numerical data.
3232
- When you’re working with multi-dimensional data.
3333
- When computational efficiency is important.
34-
- When you need to store data of same data type. `
34+
- When you need to store data of same data type.
3535

3636
## Pandas Series
3737

38-
Pandas is a Python library used for data manipulation and analysis, introduces the `Series` data structure, which is designed for handling labeled one-dimensional data efficiently.
38+
Pandas is a Python library used for data manipulation and analysis, introduces the `Series` data structure, which is designed for handling labeled one-dimensional data efficiently. Indexing in Pandas Series is Label-based. It effectively handles heterogeneous data.
3939

4040
Features of Pandas `Series`:
4141

4242
- **Labeled Data**: Pandas Series associates a label (or index) with each element of the array, making it easier to work with heterogeneous or labeled data.
4343

4444
- **Heterogeneous Data**: Unlike NumPy arrays, Pandas Series can hold data of different types (integers, floats, strings, etc.) within the same object.
4545

46-
- **Data Alignment**: One of the powerful features of Pandas Series is its ability to automatically align data based on label. This makes handling and manipulating data much more intuitive and less error-prone.
46+
- **Data Alignment**: One of the powerful features of Pandas Series is its ability to automatically align data based on label.
4747

4848
Example of creating a Pandas Series:
4949

0 commit comments

Comments
 (0)