Learn
Practice
Projects
Free datasets
Resources
Toolkit
Pricing
Log in
Start free
Loading…
Python: Pandas DataFrames
← All topics
Python: Pandas DataFrames
50 exercises
·
3 free
01
1. Create DataFrame from dict
Free
→
02
2. Print first 5 rows
Free
→
03
3. Summary statistics
Free
→
04
4. Select a specific column
Locked
→
05
5. Filter rows by condition
Locked
→
06
6. Add a new column
Locked
→
07
7. Group by a column and compute mean
Locked
→
08
8. Sort by a specific column
Locked
→
09
9. Drop rows with missing values
Locked
→
10
10. Merge two DataFrames
Locked
→
11
11. Rename a column
Locked
→
12
12. Drop a column
Locked
→
13
13. Fill missing values
Locked
→
14
14. Replace values
Locked
→
15
15. Drop duplicates
Locked
→
16
16. Map values
Locked
→
17
17. Apply function to a column
Locked
→
18
18. Concatenate two DataFrames
Locked
→
19
19. Melt (unpivot) a DataFrame
Locked
→
20
20. Create a pivot table
Locked
→
21
21. Set a MultiIndex
Locked
→
22
22. Unstack a MultiIndex
Locked
→
23
23. Insert a row by loc
Locked
→
24
24. Mask and replace values in a column
Locked
→
25
25. Value counts of a column
Locked
→
26
26. Read from CSV (StringIO)
Locked
→
27
27. Write to CSV (StringIO)
Locked
→
28
28. Reindex a DataFrame
Locked
→
29
29. Set and reset index
Locked
→
30
30. Sort by multiple columns
Locked
→
31
31. Merge with a left join
Locked
→
32
32. Outer join merge
Locked
→
33
33. Aggregate multiple columns
Locked
→
34
34. Map with a dictionary
Locked
→
35
35. Count unique values in a column
Locked
→
36
36. Assign a new column with .assign()
Locked
→
37
37. Detect and count duplicates
Locked
→
38
38. Query usage
Locked
→
39
39. Pivot from long to wide
Locked
→
40
40. Pivot from wide to long
Locked
→
41
41. Slice rows with loc
Locked
→
42
42. Slice by position with iloc
Locked
→
43
43. Group by multiple columns
Locked
→
44
44. Merge on multiple keys
Locked
→
45
45. Sort groupby results
Locked
→
46
46. Rolling mean
Locked
→
47
47. Shift column
Locked
→
48
48. Insert column at a specific position
Locked
→
49
49. Create DataFrame from list of dicts
Locked
→
50
50. Combine multiple aggregations with groupby
Locked
→