🪅Pandas DataFrame
Pandas DataFrame is a two-dimensional, tabular data structure in the Python programming language provided by the Pandas library. It is similar to a spreadsheet or SQL table, where data is organized in rows and columns. Each column can have a different data type (e.g., integers, floats, strings), and you can perform various operations on the data, such as filtering, grouping, and aggregation.
Here are some key features and concepts related to Pandas DataFrame:
Structure: a DataFrame consists of rows and columns. Each column is a Pandas Series, which is a one-dimentional labeled array.
Index: rows and columns are both labeled. The row labels are refered to as the "index", and the column labels are the names of the columns.
Creation: you can create a DataFrame from various data structure, such as lists, dictionaries, NumPy arrays, or even other DataFrames.
Reading and writing data: Pandas supports reading data from various file formats, such as CSV, Excel, SQL databases, and more. It can also write data back to those formats.
Last updated