Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
51 views
Python Assignment 2
Python Basic questions
Uploaded by
brownpie2019
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Assignment 2 For Later
Download
Save
Save Python Assignment 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
51 views
Python Assignment 2
Python Basic questions
Uploaded by
brownpie2019
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Python Assignment 2 For Later
Carousel Previous
Carousel Next
Save
Save Python Assignment 2 For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 6
Search
Fullscreen
Assignment-2 BA=I Cpythor Reeavuasy, A Write an example program ‘to add -the tHe to the chart different font size,colour and also assign X and ¥ axts label for chart? tn) = import matplotitb: pyplot oS ple x=f35r) y= (26810) ple-plot Cs yto*-—!, morkersize= \o-5 linewidth=25) pit-itle (‘sample_ chor’) pre-show ( ) -s if the usey want to 0ssign she tite with different font-size and colour ~pwe can access the font-size ¢ colos In dite fanction pit tite (‘samplechott, font-size =80, color -\green’) plt-show (} -o\t the user want to assign X and ¥ axts on chast, we can use late) to assess the cordtnates on chart: plt-xtabel c y-oxts) ple Ylabel (y-axis) ple-shoud } Define numerical package i python and explain how to install Numpy? wite an example Program 4p print & numbers by using snumpy and algo write example prog7am an zero dtmenstonal and a-dimenstonal anway? Numesiea) package 10 rethonst he entive concept tn “the form of anays © extrac the numbexs 22.06: Sec-c CRInan xv= D| write an ex tena this ‘Should be used th the-form of analytical as pert ‘index’ cri the ‘data. with the hejp of, Index number: "yeseoxch “en ext¥ac >To extract the fouls and columns fh 2D arrays - +To print S numbers by using numpy NCD + Imports Numpy a5 TP con's npramay (8,209) print (a) output? [P23 ust | +o print zero dimensional 27709 ial) + import numpy 45 “Pp ‘ mre praca (5) print: (am) output? & To pane 2 med in(3 ore ump 05 TF ont = npravod (tue, print: (arr) output / G12 33 Lose) c71e4 ome. prearam “P sate) extrack -the gf elemest from arr orrval) \nl)4 enpor numpy 99 np aon 2np atoy (C124) uS) paint (arr (23)9 9 Example ple program to print 50 numbers by using avangeC eC) function- InU) + Import aumpy as 9P ony = Np-avange (Sd) print (ar) cutput + [Ort sarph-s5e6s7 8 4 10 =~ aq] Example Prooram to print So numbers with = records|sets and 5 qouss, Vcolurnns inl) +import NUMpPY as np any = Np: arrange (SO): reshape (55) print (art) output L fo) (233 Cae ud) pefine ‘Inter changing of Rows and columns ? fo get tows (nto @lurans and we have to use te ‘transpwe co\usnns Tinto OWS we have to Use ae nO: oa T (a) os) (368) ouspur? OODefine pandas? How +o install pandos?7 write an example program -to create a series ‘and also to crette index values +o Series? data library 2 analyse the data from extemal files andes & & ev (lab seperated valu) and also data scraping Vike -yesw "O52 fom web powed - pandas vill) @nalyse manually loaded data or trading data eaTrere are 2 data types 1) Serfes obect 22) Data-fiame object Seviest Series & ONE dimensional object simtlar %o bullet phyton list - ta. frame - “sax i a datatype tat represents each column of da: 4o Ist concept Each element must be same dlatettype and © Stiilax Nolet 5 Sevies and dataframes ave 2 datatypes fot pandas: 5 so that we can analyse athe data to tentfy the 92 exbact single Column § single vou data oltse the dain by using pandas 9S + lib on pandas “or visualtsation © of Yous and columns to per requirement § swe can visu we can use matplo’ raw to instal) pandas nO PIP install pandas eote A series jas as pa anancé) 2To Cf Ants tmport Pang aspaseries (Les print (a) : ° tol outpe! finance type + object3 ~STe create Index values te sevies las as pd az parsertes ({ie! Minancé | index = fs ubjeck— print (2) tn) + Import pand. f code 'ubject.rav) subject_code {ol finance output * subject name d-cype tobfect Example program 4o print the following output with 5 vous and 3 columns: Int Import pandas 6° pd ic epd: Data frame (flenane’ [fuer inte Sword] A000 # Lge, 26,6), Now + tu 2,26,78)5) print CX) oukputt — came high Yow sT et Info 26 as waipro cu 18 write an exemple program to exback the Index I data inl)? Print (af loci) ourpt ? CNome info High Ee low as Nameid, dtype? obyeck lay criteria as per Yequremer Nolet “loc method wil) extract che partic ttfollowing dataset: Year ‘employment skills 2018 6\ 2019 2 2020 90 2021 23 2022, 65 2028 24 2024 by vrsualisationvsing pandast and we can Slow he data as of requirement chart aren i _s by using date frome -the user an early access the charts, we @0 the data 05 per dataset on dataset we create Index labels ch KY ants labels on the same for this We co! as seobon iS also available: ato create dataset sept create. a dato. Frome etepi2> plot te chart © Inc ztenpott pandas a5 pd tmport mozplot I"b -Pupet as pt data = f'yeor"? [aoe 2019,2020,2021 2022 2025), employent auetl't £ 6a,ad.90, 03,65,24,600%4 fiz pa-datafome (data) print 49) ® WO de 5 9 C0 + deeplot (x year! u=semplogrenk SkI8, Kind toca ther, Color re) plt-showL) 10 Define visualisation using pandas an example program © th: visualisati ndas? usrite Prog: re isualisationvoing_ pare _>by using pandas we COP \igualtse the data ultth the hejp of matploHtt wt mdividual Colors on individual criteria OF sometimes enthre arts and also we can create yn use a new! libvary @lled plot
You might also like
Python Pandas
PDF
No ratings yet
Python Pandas
96 pages
Python Pandas
PDF
No ratings yet
Python Pandas
22 pages
Lesson 03 3.01 Python Libraries For Data Science
PDF
No ratings yet
Lesson 03 3.01 Python Libraries For Data Science
79 pages
UNIT II Material
PDF
No ratings yet
UNIT II Material
34 pages
Data Handling Python NCERT
PDF
No ratings yet
Data Handling Python NCERT
36 pages
CH 2
PDF
No ratings yet
CH 2
36 pages
01 Introduction to Python
PDF
No ratings yet
01 Introduction to Python
36 pages
Httpsncert.nic.Intextbookpdfleip102.PDF
PDF
No ratings yet
Httpsncert.nic.Intextbookpdfleip102.PDF
36 pages
Ip Chapter 1
PDF
No ratings yet
Ip Chapter 1
36 pages
unit-3(FODS)
PDF
No ratings yet
unit-3(FODS)
34 pages
Data Visualization1
PDF
No ratings yet
Data Visualization1
52 pages
Python Pandas
PDF
No ratings yet
Python Pandas
21 pages
Chapter 10 Eng Introducing Python Pandas
PDF
100% (3)
Chapter 10 Eng Introducing Python Pandas
28 pages
Ip 102
PDF
No ratings yet
Ip 102
36 pages
PP_unit-5_notes
PDF
No ratings yet
PP_unit-5_notes
15 pages
Panda Ncert 1
PDF
No ratings yet
Panda Ncert 1
36 pages
Unit 5 PythonPackages(Matplotlib)
PDF
No ratings yet
Unit 5 PythonPackages(Matplotlib)
24 pages
Pandas
PDF
No ratings yet
Pandas
12 pages
Unit 1 Machine Learning
PDF
No ratings yet
Unit 1 Machine Learning
61 pages
pandas (1)
PDF
No ratings yet
pandas (1)
25 pages
Advance Data Analysis and Visualisation - With - Python For Executives and Business Management
PDF
No ratings yet
Advance Data Analysis and Visualisation - With - Python For Executives and Business Management
76 pages
Series
PDF
No ratings yet
Series
23 pages
Unit I: Data Handling Using Pandas and Data Visualization: Marks:30
PDF
No ratings yet
Unit I: Data Handling Using Pandas and Data Visualization: Marks:30
75 pages
UNIT - 3 Pandas
PDF
No ratings yet
UNIT - 3 Pandas
21 pages
Python Pandas For Class XI Tutorial 1
PDF
No ratings yet
Python Pandas For Class XI Tutorial 1
8 pages
Python Crash Course
PDF
100% (1)
Python Crash Course
9 pages
DAY6 Pandas Seaborn
PDF
No ratings yet
DAY6 Pandas Seaborn
97 pages
Q-Step WS 06112019 Data Analysis and Visualisation With Python
PDF
No ratings yet
Q-Step WS 06112019 Data Analysis and Visualisation With Python
76 pages
Unit I: Data Handling Using Pandas and Data Visualization: Marks:25
PDF
No ratings yet
Unit I: Data Handling Using Pandas and Data Visualization: Marks:25
135 pages
IP TERM-1 Study Material (Session 2021-22)
PDF
No ratings yet
IP TERM-1 Study Material (Session 2021-22)
84 pages
4 Introduction to Python Part 3 (2)
PDF
No ratings yet
4 Introduction to Python Part 3 (2)
48 pages
Nitya Practical File Class Xii 2023-2024
PDF
No ratings yet
Nitya Practical File Class Xii 2023-2024
41 pages
Unit 5-Python Packages 240127 185930
PDF
No ratings yet
Unit 5-Python Packages 240127 185930
34 pages
Pandas 1
PDF
No ratings yet
Pandas 1
64 pages
01 Introduction to Python
PDF
No ratings yet
01 Introduction to Python
36 pages
3 Python
PDF
No ratings yet
3 Python
16 pages
Pandas What Can Pandas Do For You ?: Statsmodels SM Seaborn Sns
PDF
No ratings yet
Pandas What Can Pandas Do For You ?: Statsmodels SM Seaborn Sns
9 pages
Pandas
PDF
No ratings yet
Pandas
11 pages
Introduction to Pandas & Data Structures
PDF
No ratings yet
Introduction to Pandas & Data Structures
11 pages
Pierian Data - Python For Finance & Algorithmic Trading Course Notes
PDF
No ratings yet
Pierian Data - Python For Finance & Algorithmic Trading Course Notes
11 pages
Part1_Cours_Python
PDF
No ratings yet
Part1_Cours_Python
62 pages
UNIT 3(Chapter 2) Pandas
PDF
No ratings yet
UNIT 3(Chapter 2) Pandas
43 pages
XII_ip_Panda_I_Part_I_2023 (1) 1 1
PDF
No ratings yet
XII_ip_Panda_I_Part_I_2023 (1) 1 1
25 pages
Course_ Introduction to Data Science (SD211105)
PDF
No ratings yet
Course_ Introduction to Data Science (SD211105)
10 pages
04 Introduction To Python-1
PDF
No ratings yet
04 Introduction To Python-1
29 pages
Python Pandas
PDF
No ratings yet
Python Pandas
230 pages
Data Analysis and Visualisation With Python
PDF
No ratings yet
Data Analysis and Visualisation With Python
75 pages
Aman Ai Primers Pandas PDF
PDF
No ratings yet
Aman Ai Primers Pandas PDF
130 pages
XII-IP-QuickRevision 2 in 1
PDF
No ratings yet
XII-IP-QuickRevision 2 in 1
13 pages
Unit - V Introduction To Pandas in Python
PDF
No ratings yet
Unit - V Introduction To Pandas in Python
21 pages
Report File
PDF
No ratings yet
Report File
40 pages
Unit 5 PythonPackages (Numpy,Pandas,Tkinter)
PDF
No ratings yet
Unit 5 PythonPackages (Numpy,Pandas,Tkinter)
68 pages
unit 5
PDF
No ratings yet
unit 5
28 pages
FOD Record Sem 1
PDF
No ratings yet
FOD Record Sem 1
25 pages
Pandas Class XII (2021-22)
PDF
No ratings yet
Pandas Class XII (2021-22)
246 pages
NumPy and Pandas
PDF
No ratings yet
NumPy and Pandas
72 pages
EXP1-siddhant gupta (23_SE_148)
PDF
No ratings yet
EXP1-siddhant gupta (23_SE_148)
17 pages
Python Univ V
PDF
No ratings yet
Python Univ V
16 pages
Unit_III_part_2_1725700061785
PDF
No ratings yet
Unit_III_part_2_1725700061785
85 pages
Project 1
PDF
No ratings yet
Project 1
4 pages
Document
PDF
No ratings yet
Document
3 pages
Investment Bank in Hyderabad
PDF
No ratings yet
Investment Bank in Hyderabad
4 pages
PBMEIT Intl Conference 2 2
PDF
No ratings yet
PBMEIT Intl Conference 2 2
8 pages
Session 14 - 16 Triangluar Abritrage
PDF
No ratings yet
Session 14 - 16 Triangluar Abritrage
29 pages
Ansof Model
PDF
No ratings yet
Ansof Model
9 pages
International Finance Assignment
PDF
No ratings yet
International Finance Assignment
11 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Python Pandas
PDF
Python Pandas
Python Pandas
PDF
Python Pandas
Lesson 03 3.01 Python Libraries For Data Science
PDF
Lesson 03 3.01 Python Libraries For Data Science
UNIT II Material
PDF
UNIT II Material
Data Handling Python NCERT
PDF
Data Handling Python NCERT
CH 2
PDF
CH 2
01 Introduction to Python
PDF
01 Introduction to Python
Httpsncert.nic.Intextbookpdfleip102.PDF
PDF
Httpsncert.nic.Intextbookpdfleip102.PDF
Ip Chapter 1
PDF
Ip Chapter 1
unit-3(FODS)
PDF
unit-3(FODS)
Data Visualization1
PDF
Data Visualization1
Python Pandas
PDF
Python Pandas
Chapter 10 Eng Introducing Python Pandas
PDF
Chapter 10 Eng Introducing Python Pandas
Ip 102
PDF
Ip 102
PP_unit-5_notes
PDF
PP_unit-5_notes
Panda Ncert 1
PDF
Panda Ncert 1
Unit 5 PythonPackages(Matplotlib)
PDF
Unit 5 PythonPackages(Matplotlib)
Pandas
PDF
Pandas
Unit 1 Machine Learning
PDF
Unit 1 Machine Learning
pandas (1)
PDF
pandas (1)
Advance Data Analysis and Visualisation - With - Python For Executives and Business Management
PDF
Advance Data Analysis and Visualisation - With - Python For Executives and Business Management
Series
PDF
Series
Unit I: Data Handling Using Pandas and Data Visualization: Marks:30
PDF
Unit I: Data Handling Using Pandas and Data Visualization: Marks:30
UNIT - 3 Pandas
PDF
UNIT - 3 Pandas
Python Pandas For Class XI Tutorial 1
PDF
Python Pandas For Class XI Tutorial 1
Python Crash Course
PDF
Python Crash Course
DAY6 Pandas Seaborn
PDF
DAY6 Pandas Seaborn
Q-Step WS 06112019 Data Analysis and Visualisation With Python
PDF
Q-Step WS 06112019 Data Analysis and Visualisation With Python
Unit I: Data Handling Using Pandas and Data Visualization: Marks:25
PDF
Unit I: Data Handling Using Pandas and Data Visualization: Marks:25
IP TERM-1 Study Material (Session 2021-22)
PDF
IP TERM-1 Study Material (Session 2021-22)
4 Introduction to Python Part 3 (2)
PDF
4 Introduction to Python Part 3 (2)
Nitya Practical File Class Xii 2023-2024
PDF
Nitya Practical File Class Xii 2023-2024
Unit 5-Python Packages 240127 185930
PDF
Unit 5-Python Packages 240127 185930
Pandas 1
PDF
Pandas 1
01 Introduction to Python
PDF
01 Introduction to Python
3 Python
PDF
3 Python
Pandas What Can Pandas Do For You ?: Statsmodels SM Seaborn Sns
PDF
Pandas What Can Pandas Do For You ?: Statsmodels SM Seaborn Sns
Pandas
PDF
Pandas
Introduction to Pandas & Data Structures
PDF
Introduction to Pandas & Data Structures
Pierian Data - Python For Finance & Algorithmic Trading Course Notes
PDF
Pierian Data - Python For Finance & Algorithmic Trading Course Notes
Part1_Cours_Python
PDF
Part1_Cours_Python
UNIT 3(Chapter 2) Pandas
PDF
UNIT 3(Chapter 2) Pandas
XII_ip_Panda_I_Part_I_2023 (1) 1 1
PDF
XII_ip_Panda_I_Part_I_2023 (1) 1 1
Course_ Introduction to Data Science (SD211105)
PDF
Course_ Introduction to Data Science (SD211105)
04 Introduction To Python-1
PDF
04 Introduction To Python-1
Python Pandas
PDF
Python Pandas
Data Analysis and Visualisation With Python
PDF
Data Analysis and Visualisation With Python
Aman Ai Primers Pandas PDF
PDF
Aman Ai Primers Pandas PDF
XII-IP-QuickRevision 2 in 1
PDF
XII-IP-QuickRevision 2 in 1
Unit - V Introduction To Pandas in Python
PDF
Unit - V Introduction To Pandas in Python
Report File
PDF
Report File
Unit 5 PythonPackages (Numpy,Pandas,Tkinter)
PDF
Unit 5 PythonPackages (Numpy,Pandas,Tkinter)
unit 5
PDF
unit 5
FOD Record Sem 1
PDF
FOD Record Sem 1
Pandas Class XII (2021-22)
PDF
Pandas Class XII (2021-22)
NumPy and Pandas
PDF
NumPy and Pandas
EXP1-siddhant gupta (23_SE_148)
PDF
EXP1-siddhant gupta (23_SE_148)
Python Univ V
PDF
Python Univ V
Unit_III_part_2_1725700061785
PDF
Unit_III_part_2_1725700061785
Project 1
PDF
Project 1
Document
PDF
Document
Investment Bank in Hyderabad
PDF
Investment Bank in Hyderabad
PBMEIT Intl Conference 2 2
PDF
PBMEIT Intl Conference 2 2
Session 14 - 16 Triangluar Abritrage
PDF
Session 14 - 16 Triangluar Abritrage
Ansof Model
PDF
Ansof Model
International Finance Assignment
PDF
International Finance Assignment