Stellar Study Cards

Flashcards for Python Libraries | Learn Pandas, NumPy, and Matplotlib Easily

60 Total Cards in This Deck
Python Libraries

60 Flashcards to Master Pandas, NumPy, and Matplotlib

Arrow keys or swipe to navigate cards

1 / 60 Total
Pandas

What is a Pandas DataFrame?

2 / 60 Total
Pandas

How do you create a Pandas DataFrame from a dictionary?

3 / 60 Total
Pandas

How do you check the first few rows of a DataFrame?

4 / 60 Total
Pandas

How do you check the last few rows of a DataFrame?

5 / 60 Total
Pandas

How can you display the data types of all columns in a DataFrame?

6 / 60 Total
Pandas

How do you read a CSV file into a Pandas DataFrame?

7 / 60 Total
Pandas

How can you write a Pandas DataFrame to a CSV file?

8 / 60 Total
Pandas

How do you select a column in a DataFrame?

9 / 60 Total
Pandas

How can you filter rows in a DataFrame where a column value equals 10?

10 / 60 Total
Pandas

What does the \(\texttt{groupby()}\) function do?

11 / 60 Total
Pandas

How can you calculate the mean of a column in a DataFrame?

12 / 60 Total
Pandas

How do you check for missing values in a DataFrame?

13 / 60 Total
Pandas

How do you drop rows with missing values from a DataFrame?

14 / 60 Total
Pandas

How can you fill missing values in a DataFrame with a specific value?

15 / 60 Total
Pandas

How do you reset the index of a DataFrame?

16 / 60 Total
Pandas

How can you rename columns in a DataFrame?

17 / 60 Total
Pandas

How do you sort a DataFrame by a specific column?

18 / 60 Total
Pandas

How do you concatenate two DataFrames vertically?

19 / 60 Total
Pandas

How do you merge two DataFrames on a specific column?

20 / 60 Total
Pandas

What is the purpose of \(\texttt{DataFrame.describe()}\)?

21 / 60 Total
Pandas

How do you get the unique values in a column?

22 / 60 Total
Pandas

How can you apply a function to every element in a column?

23 / 60 Total
Pandas

How do you create a new column in a DataFrame?

24 / 60 Total
Pandas

What does \(\texttt{pivot_table()}\) do in Pandas?

25 / 60 Total
Pandas

How do you change the data type of a column in a DataFrame?

26 / 60 Total
NumPy

What is NumPy primarily used for?

27 / 60 Total
NumPy

How do you create a NumPy array from a Python list?

28 / 60 Total
NumPy

How do you create an array of zeros in NumPy?

29 / 60 Total
NumPy

How do you create an array of ones in NumPy?

30 / 60 Total
NumPy

How can you create a range of numbers in NumPy?

31 / 60 Total
NumPy

What is the difference between \(\texttt{np.linspace()}\) and \(\texttt{np.arange()}\)?

32 / 60 Total
NumPy

How do you reshape a NumPy array?

33 / 60 Total
NumPy

What does the \(\texttt{ndim}\) attribute of a NumPy array return?

34 / 60 Total
NumPy

How do you find the shape of a NumPy array?

35 / 60 Total
NumPy

How can you perform element-wise addition of two NumPy arrays?

36 / 60 Total
NumPy

How do you calculate the mean of all elements in a NumPy array?

37 / 60 Total
NumPy

How do you find the maximum value in a NumPy array?

38 / 60 Total
NumPy

How do you find the index of the maximum value in a NumPy array?

39 / 60 Total
NumPy

How can you stack two NumPy arrays vertically?

40 / 60 Total
NumPy

How can you stack two NumPy arrays horizontally?

41 / 60 Total
NumPy

What is broadcasting in NumPy?

42 / 60 Total
NumPy

How do you generate a 2x2 identity matrix in NumPy?

43 / 60 Total
NumPy

How can you filter elements in a NumPy array based on a condition?

44 / 60 Total
NumPy

What does the \(\texttt{np.dot()}\) function do?

45 / 60 Total
NumPy

How do you find the transpose of a NumPy array?

46 / 60 Total
Matplotlib

What is Matplotlib used for?

47 / 60 Total
Matplotlib

How do you create a basic line plot in Matplotlib?

48 / 60 Total
Matplotlib

How can you add a title to a plot?

49 / 60 Total
Matplotlib

How can you label the x-axis and y-axis in a plot?

50 / 60 Total
Matplotlib

How do you create a scatter plot in Matplotlib?

51 / 60 Total
Matplotlib

How can you customize the color and style of a line in a plot?

52 / 60 Total
Matplotlib

How do you create a bar chart in Matplotlib?

53 / 60 Total
Matplotlib

How can you create a histogram in Matplotlib?

54 / 60 Total
Matplotlib

What is the purpose of \(\texttt{plt.legend()}\)?

55 / 60 Total
Matplotlib

How do you create subplots in Matplotlib?

56 / 60 Total
Matplotlib

How can you adjust the size of a plot in Matplotlib?

57 / 60 Total
Matplotlib

How do you save a plot to a file in Matplotlib?

58 / 60 Total
Matplotlib

How do you set limits for the x-axis and y-axis?

59 / 60 Total
Matplotlib

How do you display a grid on a plot?

60 / 60 Total
Matplotlib

How can you change the style of a plot in Matplotlib?