Update Pandas_Series_Vs_NumPy_ndarray.md

pull/207/head
Lingamuneni Santhosh Siddhardha 2024-05-13 15:58:31 +05:30 zatwierdzone przez GitHub
rodzic f87701802f
commit 7cd0ec140e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ Both NumPy ndarray and Pandas Series are essential tools for data manipulation i
## NumPy ndarray
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.
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.).
Features of NumPy `ndarray`:
@ -31,11 +31,11 @@ Output:
- When you need to perform mathematical operations on numerical data.
- When youre working with multi-dimensional data.
- When computational efficiency is important.
- When you need to store data of same data type. `
- When you need to store data of same data type.
## Pandas Series
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.
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.
Features of Pandas `Series`:
@ -43,7 +43,7 @@ Features of Pandas `Series`:
- **Heterogeneous Data**: Unlike NumPy arrays, Pandas Series can hold data of different types (integers, floats, strings, etc.) within the same object.
- **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.
- **Data Alignment**: One of the powerful features of Pandas Series is its ability to automatically align data based on label.
Example of creating a Pandas Series: