← Back to Dashboard

Intro Data Science NumPy Pandas: Easy Exercises EASY

"""
Topic 08: Introduction to Data Science (NumPy & Pandas) - EASY Exercises (10)
"""

# Exercise 1: Import numpy and create an array of 10 zeros.
# Write your code below:


# Exercise 2: Create a NumPy array of numbers from 10 to 50 using np.arange().
# Write your code below:


# Exercise 3: Create a 3x3 identity matrix using NumPy.
# Write your code below:


# Exercise 4: Create a NumPy array of 20 random numbers between 0 and 1.
# Write your code below:


# Exercise 5: Find the sum and mean of elements in a NumPy array [10, 20, 30, 40].
# Write your code below:


# Exercise 6: Import pandas and create a Series from a list of five fruits.
# Write your code below:


# Exercise 7: Create a Pandas DataFrame using the following dictionary:
# {"A": [1, 2, 3], "B": [4, 5, 6]}
# Write your code below:


# Exercise 8: Print the first 2 rows of a DataFrame using the .head() method.
# Write your code below:


# Exercise 9: Create a 1D NumPy array and reshape it into a 2x5 matrix.
# Write your code below:


# Exercise 10: Use NumPy to find the square root of every number in a list [1, 4, 9, 16].
# Write your code below: