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

AI Roadmap using Python

Python is a great foundation for diving into AI! To take the next step in your AI learning journey, here’s a roadmap to guide you. 1. Strengthen Your Math Skills

Create new Python Virtual environment

Create a new virtual environment  Python 3 allows you to manage separate package installations for different projects. It creates a “virtual” isolated Python installation. When you switch projects, you can

Explain about Hugging Face Transformers

Hugging Face Transformers is a powerful library designed for natural language processing (NLP), computer vision, and audio tasks. It provides state-of-the-art pretrained models and tools for fine-tuning and deploying these