Program 1:Write a program to create a 2D array using NumPy.

Python 10 Programs for Beginners

Output:

image 33 - https://codeconfig.in

Program 2: Write a program to convert a python list to a NumPy array.

Python 10 Programs for Beginners

Output:

image 35 - https://codeconfig.in

Program 3: Write a program to create matrix of 3×3 from 11 to 30.

Python 10 Programs for Beginners

Output:

image 37 - https://codeconfig.in

Program 4: Write a program to create a data frame to store data of candidates who appeared in interviews. The data frame columns are name, score, attempts, and qualify (Yes/No). Assign row index as C001,C002, and so on.

Python 10 Programs for Beginners
Python 10 Programs for Beginners

Output:

image 40 - https://codeconfig.in

Program 5: Write a program to create a data frame named player and store their data in the columns like team, no. of matches, runs, and average. Assign player name as row index and Display only those player details whose score is more than 1000.

Python 10 Programs for Beginners

Output:

image 42 - https://codeconfig.in

Program 6: Write a program to represent the data on the ratings of mobile games on bar chart. The sample data is given as: Pubg, Free Fire, Mine Craft, GTA-V, Call of duty, FIFA 22. The rating for each game is as: 4.5,4.8,4.7,4.6,4.1,4.3

Python 10 Programs for Beginners

Output:

Python 10 Programs for Beginners

Program 7: Observe the given data for monthly sales of one of the salesmen for 6 months. Plot them on the line chart.

image 45 - https://codeconfig.in
Python 10 Programs for Beginners

Output:

Python 10 Programs for Beginners

Program 8: Load Image [using CV i.e. computer Vision ]and Give the title of image

Python 10 Programs for Beginners

Output:

Python 10 Programs for Beginners

Program 9: Change the color of image and Change the image to grayscale.

Python 10 Programs for Beginners
Python 10 Programs for Beginners

Program 10: Display the maximum and minimum pixels of image.

Python 10 Programs for Beginners

Output:

Python 10 Programs for Beginners

Leave a Reply

Your email address will not be published. Required fields are marked *

Explore More

Find index of first occurrence when an unsorted array is sorted

Find index of first occurrence when an unsorted an array is sorted Given an unsorted an array and a number x, find an index of first occurrence of x when

Find sum non repeating distinct elements array

Find sum of non-repeating (distinct) elements in an array Given an integer an array with repeated elements, the task is to find the sum of all distinct elements in the

Find the only different element in an array

Find the just distinct element in an array Given an array of integers where all elements are same except one element, find the just distinct element in the array. It