#29 Python Tutorial for Beginners | Ways of Creating Arrays in Numpy

Поділитися
Вставка
  • Опубліковано 21 лип 2018
  • Check out our courses:
    Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
    Coupon: TELUSKO10 (10% Discount)
    Master Java Spring Development : bit.ly/java-spring-cloud
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : bit.ly/TeluskoApp
    Discord : / discord
    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 :- github.com/navinreddy20/Python-
    Python for Beginners :- bit.ly/3JOLQhl
    Java and Spring Framework For beginners with Spring Boot : - bit.ly/3LDMj8D
    Java Tutorial for Beginners (2023) :- bit.ly/3yARVbN
    Subscribe to our other channel:
    Navin Reddy : ua-cam.com/channels/xmk.html...
    Telusko Hindi :
    ua-cam.com/channels/itz.html...
    Donation:
    PayPal Id : navinreddy20
    Patreon : navinreddy20
    www.telusko.com/contactus
  • Наука та технологія

КОМЕНТАРІ • 322

  • @service_to_krishna
    @service_to_krishna 2 роки тому +4

    I started learning programming through this Python playlist. It's the BEST!

  • @minatisahoo3147
    @minatisahoo3147 4 роки тому +2

    Simple way to learn python, thanks for creating such excellent videos and keeping it free for everyone to learn .

  • @rashmis9244
    @rashmis9244 3 роки тому +1

    thank you.....its fun learning with you....being cs student i was always afraid of coding...but the way you are teaching really creates interest and enjoy learning.....thankyou so much sir

  • @b.sasikumar2141
    @b.sasikumar2141 4 роки тому

    Ur teaching is paranormal to others teaching sir I would like to appreciate ur videos sir tq....

  • @danielkamau8436
    @danielkamau8436 3 роки тому

    nice one Mr == right sir. can't stop learning and running this

  • @ramarashdi2421
    @ramarashdi2421 6 років тому

    Thanks sir
    You are supporting us .

  • @crosswalker45
    @crosswalker45 3 роки тому

    may god bless u sir,,,,u r really doing a very good job!!

  • @deepakkumarsingh6864
    @deepakkumarsingh6864 6 років тому +1

    The best! Keep it going

  • @maneeshdhauni
    @maneeshdhauni 5 років тому

    choomeshwar.........you are too good. God bless you.

  • @reshaknarayan3944
    @reshaknarayan3944 5 років тому

    Clear and concise. it would be more useful if any real time examples are discussed

  • @ob7606
    @ob7606 5 років тому +17

    Hehe I am a total and complete n00b, you lost me at round lesson #21 to be honest, I am still going along to try and grasp the terminology etc. I think things will start coming together when I start doing practical examples. The material is incredible and I am loving it !

    • @harshavardhandsh5190
      @harshavardhandsh5190 5 років тому

      Sir Please don't hide yourself that is more understandable for me...thanks

  • @sradhanjalisahoo9442
    @sradhanjalisahoo9442 4 роки тому +1

    Congrats sir, it reached 1M subscribers 😍😊

  • @vakhariyajay2224
    @vakhariyajay2224 Рік тому +1

    Thank you very much. You are a genius.

  • @SohailKhan-fb7gb
    @SohailKhan-fb7gb 3 роки тому +5

    Difference beween linspace() and logspace():
    Suppose you have a cake, and you ask linspace to cut it into 5 parts, linspace will cut it in five EQUAL parts, But if you ask logspace to cut the cake into 5 parts, it will cut the cake in five UNEQUAL parts. Everyone will get different sizes, just that it will cut in five parts that's it.

  • @syangurmeet1
    @syangurmeet1 4 роки тому

    Mr, Reddy.. Superb..

  • @harishsingh361
    @harishsingh361 5 років тому +9

    Hello Sir, i have a question, in Automation testing which scripting language i should choose java or python for getting job quickly and getting more calls.

  • @chaitanyabingumalla8045
    @chaitanyabingumalla8045 5 років тому +63

    Sir, can u clearly explain what exactly is logspace(). What is meant that the values are divided on the basis of a logscale

    • @goodluckcollection5663
      @goodluckcollection5663 3 роки тому +3

      Yes

    • @zuberkhan-kn7iu
      @zuberkhan-kn7iu 3 роки тому +1

      Same question.. its also important to us how can we use these in real world projects

    • @aldrinsaurovsarker5159
      @aldrinsaurovsarker5159 3 роки тому +14

      It’s useful in numerical methods. Divided values means diving the range in particular parts.
      Like if you divide 3 in 4 parts, 3/4 = 0.75
      So, the values will be
      0, 0.75, 1.50 and 2.25

    • @_parm_
      @_parm_ 3 роки тому +2

      No

    • @o-p-bgaming1274
      @o-p-bgaming1274 3 роки тому

      @@_parm_ yes 😀

  • @mahendrakumarraichur3409
    @mahendrakumarraichur3409 6 років тому +28

    sir please explain the logspace() clearly , that is about how will the elements be divided any specific formula

    • @josib1792
      @josib1792 4 роки тому

      same do u know now?

    • @christianzupan8102
      @christianzupan8102 4 роки тому +6

      in linspace any 2 consecutive numbers in the array will have the difference, whereas in logspace any 2 consecutive numbers will have the same ratio. In this case the array starts at 1 * 10^1 and ends at 1 * 10^40. To get from one value in the array to the next you have to MULTIPLY by about 10^10, as opposed to linspace where to get from one number to the next you have to ADD the same value each time. That's my understanding at least.

    • @chaitanyasingh7761
      @chaitanyasingh7761 3 роки тому +1

      i think its based on logarithms

  • @just_a_living_being
    @just_a_living_being 6 років тому +1

    Thank you Sir : )

  • @gunasagarchinnu713
    @gunasagarchinnu713 5 років тому +14

    Sir please explain clearly logspace once again so many has doubts on that

  • @priyankashahasane7758
    @priyankashahasane7758 3 роки тому +1

    Hello sir thank you so much for this tutorial it's a great help, just one double in this video- can't understand logspace() , please help

  • @sagarwalia7647
    @sagarwalia7647 3 роки тому +1

    Hi sir,
    Can we find the series of sinx and the value of sine function at different values of x.

  • @hogrider0908
    @hogrider0908 6 років тому

    thank you so much sir.....
    very helpful......
    first comment........

  • @sekharraj8557
    @sekharraj8557 5 років тому +2

    today I just saw your meet up video, but it was late because I saw it on 11, I request you to tell about case studies,
    i'am from science background.

  • @badboy_forever_T_T
    @badboy_forever_T_T Рік тому +2

    Thanks bhaiya

  • @omsaipotti8953
    @omsaipotti8953 3 роки тому +6

    Can you give us the PDF which will consist of all the concepts,methods to study and a better way to remember and study later
    Pls consider my question sir pls

  • @swapnilkshirsagar9169
    @swapnilkshirsagar9169 5 років тому +6

    sir, but what is the use of this zeros and ones function in array...& when it can be use

  • @mrkanuhi
    @mrkanuhi 4 роки тому +4

    Hello Navin, thank you for the good job that you continue to do. Just a quick one and not related to the above video, how comprehensive is this series? Does it cover all the basics (topics) that I would require to learn on Python? Thanks.

    • @yes_i_am8378
      @yes_i_am8378 4 роки тому

      yeah it's good for learning python.

  • @SammarpanDasguptaOfficial
    @SammarpanDasguptaOfficial 4 роки тому +6

    You increase my knowledge about python array to a higher level....You are really a genius

    • @SFTrader13
      @SFTrader13 9 місяців тому

      ע״י ה. בה
      😊

    • @SFTrader13
      @SFTrader13 9 місяців тому

      בהה 😊

    • @SFTrader13
      @SFTrader13 9 місяців тому

      הנעהבעבי כביבי 😊

  • @shubhashishpattnaik3445
    @shubhashishpattnaik3445 3 роки тому

    very helpful

  • @biezhi
    @biezhi 6 років тому

    thank you sir

  • @dragnar4743
    @dragnar4743 2 місяці тому

    we can also create an array though identity matrix like np.identity(3). It will create an identity matrix of 3x3.

  • @rahulgrover2089
    @rahulgrover2089 5 років тому

    This is the first video which is confusing for me earlier than this was the pass and continue confusion but Mr reddy himself clarified in the next video..Lets see.....

  • @yamadakunsgf
    @yamadakunsgf 2 роки тому

    THANK YOUUUU

  • @msdnsditlabs5328
    @msdnsditlabs5328 3 роки тому

    Awesome !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @shubhangidongre2220
    @shubhangidongre2220 4 роки тому

    Awesome

  • @mplayz7168
    @mplayz7168 3 роки тому +1

    could you explain zeros(),ones(),logspace(),linespace().

  • @venkateswarans1012
    @venkateswarans1012 6 років тому +6

    Hi Sir,
    You are doing a great job.
    I would like to give a feedback for this video. While importing module Numpy(or any other module) try to avoid using *, because it may have lots of functions with different names. In future, if we create a variable or method name with same name used in Numpy it may get conflict.
    Import numpy as np
    arr = np.array([1,2])
    It could be the better way.

    • @Skaxarrat
      @Skaxarrat 5 років тому

      It's better that way but for learning purposes it might be overwelming to students to type each function on this video

    • @AmanUllah2net
      @AmanUllah2net 5 років тому

      Sir has discussed this things earlier. Please see the previous videos of this series.

    • @anandhisiva93
      @anandhisiva93 4 роки тому

      Its good to know. Thanks.

  • @livesamarth
    @livesamarth 6 років тому +1

    Sir, this video is boring just because u weren't visible like in other videos, I highly appreciate the way you teach Python, I request you to make another video series on Java and do what you are doing with python, I mean to be physically present so that we can see you, I seriously think, this way we are able to grasp more of what you teach us!

  • @rajeevsinghrajput6752
    @rajeevsinghrajput6752 5 років тому

    thanks sir

  • @RAVINDERKUMAR-un3hy
    @RAVINDERKUMAR-un3hy 6 років тому +56

    sir please start a project so we can implement all things

  • @kandishashidar6212
    @kandishashidar6212 4 роки тому +1

    sir please explain once again logspace()

  • @aswinnairvh4952
    @aswinnairvh4952 4 роки тому

    Sir please explain the logspace() and linspace()

  • @vijaynavale3919
    @vijaynavale3919 5 років тому

    Nice video

  • @nancyfazal2536
    @nancyfazal2536 3 роки тому +2

    Sir, while printing array created using logspace as print('%.2f' %arr[0]), You specified an index of one element. I want to print to the whole array here. Tried different ways as: print('%.2f' %arr), print('%.2f' %arr[]) But none works, getting different errors

  • @chetansoni8620
    @chetansoni8620 4 роки тому

    good

  • @nityanandamuri5230
    @nityanandamuri5230 5 років тому +1

    hello sir
    i installed numpy in the way you mentioned.I am using the default IDLE (python shell ).It still says numpy module doesn't exist when i try to run code.I have also went through sys.path() method to figure out where the IDLE is searching for numpy module and the module exists in that location.please help sir.thanks.

  • @pandikuntaradha577
    @pandikuntaradha577 5 років тому

    sir can please clarify the linespace method what are the parameters for statring and ending and for break points it is very confusing

  • @zuberkhan-kn7iu
    @zuberkhan-kn7iu 3 роки тому

    Nice video , But this video creates lots of questions like where can we use these functions and whats the use of these functions.

  • @rashmitasahoo2391
    @rashmitasahoo2391 4 роки тому +1

    Sir..I have 2doubts first is why it gives int34...and float64....and the another is logspace...I didn't understand this function..

  • @maheshvangala8472
    @maheshvangala8472 3 роки тому

    Those who want Clarity on logspace()
    ---------------------------------------------------------------------------------------------------------
    The values that are given as input are log(base10) values
    so if input is 2 the actual value is 10^2=100(^ means power)
    logspace() follows Geometric Progression
    It uses log(base 10) values. In simple Terms
    Eg : logspace(2,5,3)
    here 2 means 10 raised 2 times which is 100 (Prior Knowledge on log is required here)
    and 5 means 10 raised 5 times which is 100000
    In Geometric Progression nth term is a*r^(n-1) (^ means power
    here a value is 100
    n is 3
    last term (nth term)= a*r^(n-1)=100000
    100*r^(3-1)=100000
    100*r^2=100000
    r^2=1000
    r=10*sqrt(10)=31.622776601683796
    so the 3 numbers are
    100*(31.622776601683796)^0=100.0 ,
    100*(31.622776601683796)^1=3162.2776601683795
    100*(31.622776601683796)^2=100000.0
    So The 3 numbers are 100.0,3162.2776601683795,100000.0
    Like If You Got Clarity

  • @ishubhardwaj9027
    @ishubhardwaj9027 5 років тому +2

    Hello sir!
    Ist of all thanks for sharing your knowledge and time with us
    Second, i wish to work as data scientist and my question is : These 72 videos are sufficient for tackling the problems related to data and all? Or we need to subscribe other websites for more information?

  • @santhoshsairam
    @santhoshsairam 9 місяців тому

    I have a doubt, while importing packages ie., what is the difference between "import numpy as np" and "from numpy import *". Is these two are same or different?

  • @Skaxarrat
    @Skaxarrat 5 років тому +11

    Good tutorial. I know Python but never tried numpy. I've a question: What's the use of numpy functions 'one' and 'zero'?

    • @anshpatidar5842
      @anshpatidar5842 4 роки тому

      yeah what's that for

    • @shubhamrohatgi836
      @shubhamrohatgi836 3 роки тому +2

      np.ones() function is used to create a matrix full of ones where as np.zeros() function is used to create a matrix full of zeroes. It can be used when you initialize the weights during the first iteration in TensorFlow and other statistic tasks.

    • @javedansari3016
      @javedansari3016 3 роки тому +1

      Its very useful when u will learn Machine Learning with python. A lot of matrix calculation is involved there. Also yo will need matrix of ones and zeros for calculating things like eigen vectors, inverse of a matrix etc. I hope it cleared your doubt.

  • @himanshurajpurohit344
    @himanshurajpurohit344 4 роки тому

    Sir please make same video of numpy using IDLE in IDLE it shows lots of error in same kind of code

  • @gvsmchaithanya2847
    @gvsmchaithanya2847 5 років тому +1

    sir how we can pass an multi dimensional array getting inputs from user

  • @siddharthrangnani6889
    @siddharthrangnani6889 4 роки тому +1

    add two arrays using for loop:
    from numpy import *
    arr=array([1,2,3,4],int)
    arr1=array([1,1,1,1],int)
    for a in arr+arr1:
    print(a)

    • @imfrommars7362
      @imfrommars7362 Рік тому

      Your code is incorrect. It does not add 2 arrays. If you want to add 2 arrays, the correct code would be: import numpy as np
      arr = np.array([1, 2, 3, 4])
      arr2 = np.array([1, 1, 1, 1])
      a = arr + arr2
      print(a)

  • @govindtata
    @govindtata 4 роки тому +1

    Hey Navin, I am really enjoying the python lecture by u. I have query. May please tell me in lecture #29, u typed for the type of the array and is saying int32 or float 64, please clarify what is 32 and 64

    • @ursABD
      @ursABD Рік тому

      It is size of int and float

  • @dwaipayanbandyopadhyay6110
    @dwaipayanbandyopadhyay6110 5 років тому

    Sir i have a question... What if it contain float,int,str ?? Then in what it will be converted ?

  • @aamishamehtani7602
    @aamishamehtani7602 2 роки тому

    Sir,
    in the output there is float64 in the starting of the lecture. what is 64?

  • @amitoshacharya9302
    @amitoshacharya9302 5 років тому

    sir, can we take user input to create an array when we import numpy ???

  • @priyankaghogare3725
    @priyankaghogare3725 3 роки тому

    Can we use these functions for creating multi dimensional arrays

  • @vivekkumar-jn1wh
    @vivekkumar-jn1wh 4 роки тому

    addition of array is
    from numpy import *
    arr1=array([1,2,3,4,5])
    arr2=array([6,7,18,9,2])
    for i in range(5):
    arr3 = arr1+arr2
    print(arr3)

    • @PawanKumar-ol5sl
      @PawanKumar-ol5sl 2 роки тому +1

      You should put a underscore instead of space to assign a variable name. Like this
      arr_1
      arr_2

  • @ishugoyal5781
    @ishugoyal5781 4 роки тому +6

    sir ur best but this time i had a little trouble in understanding logspace
    if someone can explain it too me dont fell shy to reply

    • @ajmalbangash6928
      @ajmalbangash6928 3 роки тому

      It is just the four parts from 1 to 40.
      Eg (1.09800,2.3454000,7.0987700,37.)

  • @9491335374
    @9491335374 5 років тому +1

    Hi Sir,
    but where we can use this different arrays

  • @basavarajmanurkar7880
    @basavarajmanurkar7880 4 роки тому

    sir, for what purpose we need zeroes and ones, I didn't understand could you pls explain.

  • @chitralalawat8106
    @chitralalawat8106 5 років тому

    I have an array of order 8*412 I want to subtract every second row from every first row in the whole array and get it stored in a new array.. Can you suggest me something???

  • @chaitanyasingh7761
    @chaitanyasingh7761 3 роки тому

    2:10 what is int"32"? and is logspace related to logarithms?

  • @jeranrai645
    @jeranrai645 4 роки тому +2

    please help, i am trying to create the array and the program runs well initially and take the few inputs too but suddenly the program shows error in the middle, here is my program :
    from numpy import *
    arr=array([ ])
    vals=int(input("Enter the number of slots :"))
    for i in range(vals):
    vali=int(input("Enter the value you want to store :"))
    arr.append(vali)
    print(arr)

    • @raodyc
      @raodyc 4 роки тому

      arr .append(i)

  • @harshgupta9761
    @harshgupta9761 4 роки тому

    What is the use of zeros() and ones() function?

  • @faizanurrahman6921
    @faizanurrahman6921 4 роки тому

    Really amazing, if someone does not understand programming concepts from your videos then programming is not a way for that person...was joking...still anyone can learn to program....I love your all videos.

  • @lusaki4914
    @lusaki4914 4 роки тому +1

    hey can I get notes of all python videos available on this channel

  • @sateeshkumar1172
    @sateeshkumar1172 3 роки тому +2

    sir, can u please explain logsapace() clearly and when we use dtype function it shows int 32 and float 64 but what is the meaning of that numbers?

  • @subhrajeetatripathy5150
    @subhrajeetatripathy5150 4 роки тому

    Hi, I have newly joined ur classes about python and downloaded the latest version of it, but it's not working, whenever I m feeding input its says error. I cant also run the command prompt, IDLE, and the NumPy installation. what to do?

  • @snehabaser3155
    @snehabaser3155 5 років тому

    Is arange same as range .in that also last value excluded??

  • @mdabutalha9009
    @mdabutalha9009 5 років тому

    what if we don't specify the 3rd parameter in arange()....for example arange(10,2)??

  • @PremKumar-gq7zu
    @PremKumar-gq7zu 3 роки тому

    Sir, how can we create an array dynamically using numpy library?

  • @vamsiteja5572
    @vamsiteja5572 2 роки тому

    Sir , this arange doing same as range
    whats is specific use of this arange ??
    for ex: arange(1,15,2) output of this is same as that of range(1,15,2)

  • @ramcharan-pd2zv
    @ramcharan-pd2zv 4 роки тому

    how to create 3 *3 matrix with all zeros elements using function zeros(),how to create multi dimesional arrays by taking values from user sir?

  • @crazyzyx5030
    @crazyzyx5030 5 років тому +1

    Sir, how to take user input using numpy array ?

  • @MH-ub2pz
    @MH-ub2pz 4 роки тому

    Sir if we are getting all the facilities in numpy package itself then what is the purpose of array package? Why it is there in python? As u said that we can also create a single D array in numpy then why to use array package.

  • @abhilipsasatapathy847
    @abhilipsasatapathy847 5 років тому +1

    sir... mine is showing undefined array...what to do so?

  • @kt7920
    @kt7920 4 роки тому

    i am getting the following error whlie installing numpy -
    ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy-1.18.2.dist-info'
    Consider using the `--user` option or check the permissions.
    what should i do?

  • @saicharan4669
    @saicharan4669 4 роки тому

    Hlo alienbro at first what is the number after the int and float that is 32 and 64 what are that numbers

  • @bohotsaaridhop
    @bohotsaaridhop 4 роки тому

    What's the use of Zeroes and ones array ?

  • @prabhakaranvivekanandan4899
    @prabhakaranvivekanandan4899 4 роки тому

    Hi Sir, Your teaching skills are excellent. I have a doubt, can I use python instead of javascript?

    • @ilangovank5627
      @ilangovank5627 2 роки тому

      no

    • @ilangovank5627
      @ilangovank5627 2 роки тому

      python is used for back end programming whereas javascript is for front end

  • @shazia1939
    @shazia1939 4 роки тому

    sir what is the use of linspace and logspace

  • @rajshekharpenshanwar7420
    @rajshekharpenshanwar7420 4 роки тому

    Sir I am faceing problem with pycharm .....configuration problem that no interpreter found I see many videos but I can't solve ... please suggest me any best video for pycharm settings. .please sir.. Thank you in advance...!

  • @nookanaboinaprahlada8666
    @nookanaboinaprahlada8666 3 роки тому

    Hi sir
    Int and float is there
    But how to came int32 and float64

  • @tejashreeKR97
    @tejashreeKR97 4 роки тому

    t-3.19 mins
    I don't know the reason why 15 is not printed in the output region.
    Please explain???

  • @amarajyothireddyvemireddy343
    @amarajyothireddyvemireddy343 3 роки тому

    Y to came in output like int32 amd float64.
    Iam not understand sir

  • @biswanathpaik578
    @biswanathpaik578 3 роки тому

    why i am not able to import numpy in pycharm?i can access it in jupyter notebook and idle also

  • @sidranaz7368
    @sidranaz7368 Рік тому +1

    why linspace() and arange() not working in jupyter notebook

  • @amarthakur3568
    @amarthakur3568 3 роки тому

    can any one plz help me that why it is givinf int32 but not only int and similarly float64

  • @vishwambharkulkarni6565
    @vishwambharkulkarni6565 3 роки тому

    sir my im facing problem with numpy installation in pycharm my idle is has numpy bt my pycharm is showing error for installing of numpy
    please help me out with it ........my idle is of 32 bits where as pycharm is of 64 and ide is using lattest version of python whereas pycharm is running on 3.7.., so please try to help me out with this and fix this

  • @alishbamumtaz2310
    @alishbamumtaz2310 2 роки тому

    Can u mention how and where we can implement these?

  • @ajitce6
    @ajitce6 4 роки тому

    I am getting below error. Why?
    NameError Traceback (most recent call last)
    in
    1 import numpy as np
    ----> 2 arr = array ([1,2,3,4,5])
    3 print(arr.dtype)
    NameError: name 'array' is not defined

  • @maheshchavan3677
    @maheshchavan3677 5 років тому +1

    multidimensional array program???

  • @bhadanis
    @bhadanis 2 роки тому

    Sir, Where we can use logspace , can u give us some Idea ?
    😊

  • @ishaanmahesh5858
    @ishaanmahesh5858 3 роки тому

    the linspace and others are similar to the ones in MATLAB