pandas: columns and rowsConcept
Concept
A DataFrame is a table
deals is a DataFrame. deals['amount'] is one column (a Series). deals[deals['stage'] == 'closed_won'] keeps rows where the condition is True. deals.head() shows the first rows; len(deals) counts them; deals['amount'].sum() adds a column up.
0/5 answered · Enter to check