Friday, September 11, 2020

concatenate method over arrays in python

 concatenate method over arrays in python


 

 

concatenate method over arrays in python

====================================

concatenate method over arrays in python is used to

concatenate two arrays

 

example

from numpy import *

arr1 = array([24,58,43,71,39,60])

arr2 = array([12,53,62,83,52,92])

print("Original Array:", arr1)

print("sorted array::", sort(arr1))

print("Original Array:", arr2)

print("sorted array::", sort(arr2))

 

output

Original Array: [24 58 43 71 39 60]
sorted array:: [24 39 43 58 60 71]
Original Array: [12 53 62 83 52 92]
sorted array:: [12 52 53 62 83 92]

 

 

 

 

 

 

 


No comments:

Post a Comment

Durga Puja in Odisha

 Durga Puja in Odisha