Free Online Flashcard Deck

2 Working with Data and Data Types Free Online FlashCards

Study 2 Working with Data and Data Types with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

In a tabular dataset, what do rows and columns represent?

Back

Rows represent observations, and columns represent variables.

02
Front

What is a pandas DataFrame?

Back

A DataFrame is a two-dimensional table whose columns can have different data types.

03
Front

What does pandas `read_csv()` do?

Back

`read_csv()` loads a CSV file into a DataFrame.

04
Front

What does a DataFrame’s `shape` tell you?

Back

`shape` reports the number of rows and columns.

05
Front

Why should a customer ID usually not be treated as a quantity?

Back

A customer ID is an identifier, not a quantity; averaging IDs has no useful meaning.

06
Front

What does a missing value mean, and what is it not automatically equivalent to?

Back

A missing value means an observation is unavailable or unrecorded. It is not automatically equivalent to zero, an empty string, or “none.”

07
Front

How can you spot inconsistent category values?

Back

Compare distinct values with expected categories; capitalization differences such as `North` and `north` may indicate inconsistency.

08
Front

What should you do before converting a text column to dates or numbers?

Back

Check formats and decide how to handle values that do not convert before changing types; otherwise, valid information may be lost or misrepresented.

09
Front

What is a pandas Series in relation to a DataFrame?

Back

A Series is a labeled one-dimensional structure; each DataFrame column behaves like one.

10
Front

How can you preview the first rows of a DataFrame?

Back

`head()` previews the first rows of a DataFrame.

11
Front

What does pandas `info()` help inspect?

Back

`info()` summarizes column types and non-missing counts.

12
Front

What does a DataFrame’s `dtypes` attribute show?

Back

`dtypes` shows the data type of each column.