Filtering Question #2
Consider the following Data Frame called users_df:
| ID | Name | Age | State |
|---|---|---|---|
| 140 | George L | 47 | Iowa |
| 3260 | Mary R | 34 | Vermont |
| 18502 | Audrey V | 68 | Ohio |
| 999 | Rick W | 23 | California |
If we wanted to return only the Name and State fields for any ID greater than 3000, which code snippet meets these requirements?
Bu egzersiz
Cleaning Data with PySpark
kursunun bir parçasıdırUygulamalı interaktif egzersiz
İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün
Egzersizi başlat