Data Analysis Foundations with PythonChapter 112
Chapter 6: Data Manipulation with Pandas
Section 2 of 4-~ 1 min read-Synced from Cuantum content
1. Which Pandas data structure is generally used for tabular data? - a) Array
- b) DataFrame
- c) Dictionary
- d) Series
1. How do you drop a column named 'Age' from a DataFrame df?
- a) df.remove('Age')
- b)
df.drop(columns=['Age']) - c)
df.delete('Age') - d)
df.pop('Age')