Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
#29 Python Tutorial for Beginners | Ways of Creating Arrays in Numpy
Play lesson

Python for Beginners (Full Course) | Programming Tutorial - #29 Python Tutorial for Beginners | Ways of Creating Arrays in Numpy

Unlock Python Mastery: Dive into 75+ Engaging Tutorials and Transform Your Programming Skills with Telusko Today!

5.0 (1)
23 learners

What you'll learn

Understand and set up Python development environments using PyCharm and Jupyter Notebook.
Learn to work with various Python data types, variables, and operators.
Master Python programming fundamentals, including loops, conditional statements, and functions.
Gain proficiency in file handling, error management, and utilizing Python libraries like NumPy for data manipulation.

This course includes

  • 17.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Check out our courses: AI Powered DevOps with AWS - Live Course :- https://go.telusko.com/AIDevOps-AWS Coupon: TELUSKO10 (10% Discount) Complete Java Developer Course Batch-4: https://go.telusko.com/Complete4 Coupon: TELUSKO10 (10% Discount) Master Java Spring Development : https://go.telusko.com/masterjava Coupon: TELUSKO20 (20% Discount) Udemy Courses: Spring: https://go.telusko.com/udemyteluskospring Java:- https://go.telusko.com/udemyteluskojava Java Spring:- https://go.telusko.com/Udemyjavaspring Java For Programmers:- https://go.telusko.com/javaProgrammers Python : https://go.telusko.com/udemyteluskopython Git : https://go.telusko.com/udemyteluskogit Docker : https://go.telusko.com/udemyteluskodocker For More Queries WhatsApp or Call on : +919008963671 website : https://courses.telusko.com/ Instagram : https://www.instagram.com/navinreddyofficial/ Linkedin : https://in.linkedin.com/in/navinreddy20 TELUSKO Android App : https://bit.ly/TeluskoApp Discord : https://discord.gg/D8hWe9BqfF In this lecture we are discussing about: -- Ways of creating arrays in numpy: we have 6 way of creating arrays in numpy a)array() b)linspace() c)arange() d)logspace() e)zeros() f)ones() from numpy import * arr =array([1,2,3,4,5]) print(arr) print(arr.dtype) # int32 arr =array([1,2,3,4,5.0]) print(arr.dtype) # float -- automatically it will convert the data type to float arr =array([1,2,3,4,5],float) print(arr.dtype) # float -- we can also specify the data type of array b) linspace() -- it is used to create an array with equal interval between the elements -- syntax: linspace(start,stop,num=50,endpoint=True,retstep=False,dtype=None) arr=linspace(0,15,16) # here it break the range into 16 equal parts -- by default it will take 50 parts arr =linspace(0,15) print(arr) c) arange() -- it is used to create an array with equal interval between the elements -- syntax: arange(start,stop,step,dtype=None) arr =arange(1,15,2) print(arr) -- it will create an array with start value 1 and end value 15 with step size 2 arr=arange(1,15,2.5) d) logspace() -- it is used to create an array with equal interval between the elements in log scale -- syntax: logspace(start,stop,num=50,endpoint=True,base=10.0,dtype=None) arr=logspace(1,40,5) print(arr) e) zeros() -- it is used to create an array with all zeros -- syntax: zeros(shape,dtype=float,order='C') arr= zeros(5) print(arr) f) ones() -- it is used to create an array with all ones -- syntax: ones(shape,dtype=float,order='C') arr=ones(5) print(arr) # if i want work with int arr=ones(4,int) print(arr) Github :- https://github.com/navinreddy20/Python- Python for Beginners :- http://bit.ly/3JOLQhl Java and Spring Framework For beginners with Spring Boot : - http://bit.ly/3LDMj8D Java Tutorial for Beginners (2023) :- http://bit.ly/3yARVbN Subscribe to our other channel: Navin Reddy : https://www.youtube.com/channel/UCxmk... Telusko Hindi : https://www.youtube.com/channel/UCitz... Donation: PayPal Id : navinreddy20 Patreon : navinreddy20 http://www.telusko.com/contactus

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere