Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Important NumPy notes, Study notes of Software Development

Important NumPy notes, Information technology

Typology: Study notes

2024/2025

Available from 04/18/2025

sarofan
sarofan 🇮🇳

17 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
pf3
pf4
pf5

Partial preview of the text

Download Important NumPy notes and more Study notes Software Development in PDF only on Docsity!

Tinportont NumPy Methods For Data __ Scientists a Num} isa Rython brany a dn ane utlh arrays. Tt ales Pincg te const won ing in domain o} lines algebra, ouniep dranstoratont mabeseed Numb, wag created in 2005 by Travis Oliphant. It | |(s an open ach project and You can use tf treely . |NumP; clon s top Numerical Rlhon. Ne NumPy Num tied Creation Methods np.array () Method __ |. Descwtplion $$$ $$$} Num array from RAthon lish NP.array( list-oP- lists») Numfy array from list of lists np. array (< Randas- Sepies>) Num array from PD Sepies 3 dP. values 7 Num, array from DalaFrame NP.Zeros(« size >) NumPy array from all zeros np.ones (« size>) NumPy array from all ones np.eye(« Size >) Tdentily NumPy array np. arange (< slant», ,| Equally spaced Num array ) with specific step Np. linspace & starl>, Equally spaced Num) array | < count >) with specitic size | |Np.random.randint (s |NumPy arpay of random ints s ) Np. random.random { size») |NumPy arnay o random floats | Num Array Manipul ation Methods Method Description Grray. reshape new- shaped) Reshape Numfy Array apray-iranspose()oRanray.T |Iranspose NumPy Array hp. concalenate () Concalenate Numy Array ne Alablen ns -np- array >) Flaten a NumPy Array Np. unique « hp-apray>, ) Find unigue elements | array. tolist O NumPy Arpay to Lect Matrix and Vector Ope rations Method Np.dol &np-anrays , hp-arnay2>) Description ee eee ———— Dot Product np.makmul &np-arrays , np-arpay2>) NP-arpay1 @np-array 2 | Malrix Multiplication np. linalg nonm () Vector Search Helede th i | Replace: ment {in be dm non- zero el lil np. sort Gne-array>, ) Relurn the onder of indices that isairt Ihe annay