Basic Pandas Concepts

This section introduces the foundational concepts of pandas, focusing on creating Series and DataFrames, basic operations, and understanding the library's core functionality.

Last Updated :
Discuss
Comments

Question 1

What does pandas stand for?

  • Panel Data

  • Python Data Analysis

  • Both a and b

  • None of the above

Question 2

Which function is used to create a Series in pandas?

  • pd.DataFrame()

  • pd.Series()

  • pd.Index()

  • pd.Table()

Question 3

Which method gives the first five rows of a DataFrame?

  • head()

  • top()

  • first()

  • preview()

Question 4

How do you check the version of pandas?

  • pd.version()

  • pd.__version__

  • pd.get_version()

  • version()

Question 5

What type of data structure is a DataFrame?

  • One-dimensional

  • Two-dimensional

  • Multi-dimensional

  • None of the above

Question 6

Which function allows you to create a DataFrame?

  • pd.Series()

  • pd.DataFrame()

  • pd.Table()

  • pd.List()

Question 7

What is the default axis for sum() in pandas?

  • 0

  • 1

  • None

  • Both 0 and 1

Question 8

Which method is used to display a summary of a DataFrame?

  • info()

  • describe()

  • Both a and b

  • None of the above

Question 9

What will df.shape return?

  • A single integer

  • A tuple

  • A list

  • None of the above

Question 10

How can you install pandas in Python?

  • pip install pandas

  • conda install pandas

  • Both a and b

  • None of the above

Tags:

There are 10 questions to complete.

Take a part in the ongoing discussion