Pandas Essentials
93 cards · 🇺🇸 English
DataFrames, Series, and core Pandas data manipulation operations.
Study all 93 cards for free
Flashcards, quizzes, pixel-art games and a daily review that remembers for you.
Try the first 10 cards
1 / 10Pandas
Tap the card for the answer · swipe right if you knew it, left if not
Already have an account? Sign in
Cards
- 1PandasA Python library for data manipulation and analysis, offering data structures like Series and DataFrames
- 2Name 'Pandas'Panel data (econometrics term) and "Python data analysis"
- 3Pandas built uponNumPy
- 4Two main data structures in PandasSeries (1D) and DataFrame (2D)
- 5Pandas SeriesA one-dimensional array-like object with labeled indices
- 6Pandas DataFrameA two-dimensional tabular structure with labeled rows and columns
- 7Import Pandas conventionallyimport pandas as pd
- 8Create a Series from a listpd.Series(['a', 'b', 'c'])
- 9Access a value in a Series by labelser['label_name']
- 10What happens when you add two Series together?Values are aligned by matching index labels (similar to a join), then added
- 11Default index for a Series if none is providedInteger index ranging from 0 to n-1
- 12Create a DataFrame from a dictionarypd.DataFrame({"col1": [1, 2], "col2": [3, 4]})
- 13Read a CSV file into a DataFramepd.read_csv('filename.csv')
- 14Access a DataFrame column as a Seriesdf['column_name'] or df.column_name (if valid Python identifier)
- 15Df.loc[]Label-based indexing (access rows/columns by label)
- 16Df.iloc[]Position-based indexing (access rows/columns by integer position)
- 17Df.head()The first 5 rows of the DataFrame (or n rows if specified)
- 18Df.describe()Descriptive statistics (count, mean, std, min, max, quartiles) for numeric columns
- 19Df.shapeA tuple (number of rows, number of columns)
- 20Df.dtypesThe data type of each column
- 21Df.columnsThe labels of the DataFrame's columns as an Index object
- 22Df.indexThe labels of the DataFrame's rows as an Index object
- 23Df.valuesThe data as a 2D NumPy array
- 24Filter rows based on a conditiondf[df['col'] > 5]
- 25Select multiple columnsdf[['col1', 'col2']]
- 26Sort a DataFrame by a columndf.sort_values('column_name', ascending=True/False)
- 27Where are missing values sorted in a Series?Automatically to the end
- 28Df.groupby('col')Groups data by unique values in 'col', enabling aggregate operations
- 29.mean()Calculates the mean for each group
- 30.sum()Calculates the sum for each group
And 63 more cards. Study the whole deck free
Articles about this deck
More Programming decks
See all- 🔢
NumPy Essentials
77 cards · 🇺🇸 English
Array creation, indexing, broadcasting, and core NumPy operations.
- 📊
Data Visualization
41 cards · 🇺🇸 English
Chart types, plotting libraries, and data visualization best practices.
- 🤖
Machine Learning: Algorithms & Metrics
75 cards · 🇺🇸 English
Core ML algorithms and the metrics used to evaluate them.
- 🧠
Deep Learning
66 cards · 🇺🇸 English
Neural network architectures, training concepts, and deep learning terminology.
- 🧱
Data Structures
95 cards · 🇺🇸 English
Arrays, linked lists, trees, graphs, hash tables and their core operations.
- 🟣
C#: Fundamentals & .NET Core
99 cards · 🇺🇸 English
Core C# syntax, types, and .NET Core concepts in one deck.
