in Technology by

Create a two 2-D array. Plot it using matplotlib

1 Answer

0 votes
by

import NumPy

print(“Printing Original array”)

sampleArray = NumPy.array([[34,43,73],[82,22,12],[53,94,66]]) 

print (sampleArray)

print(“Array after deleting column 2 on axis 1”)

sampleArray = NumPy.delete(sampleArray , 1, axis = 1) 

print (sampleArray)

arr = NumPy.array([[10,10,10]])

print(“Array after inserting column 2 on axis 1”)

sampleArray = NumPy.insert(sampleArray , 1, arr, axis = 1) 

print (sampleArray)

Related questions

0 votes
    I was trying to write a quick-and-dirty script to generate plots easily. For that, I was using the following code ( ... do I do that? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    You can create a scatter plot matrix using the __________ method in pandas.tools.plotting. (a) sca_matrix (b ... and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    consider the two dataframes df1 and df2 df1 = pd.DataFrame(np.zeros((6, 6)), list('abcdef'), ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    Write a c program to find largest and smallest among all elements of 2-d array. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    2. A………… is a Panda data structure that represents a 2 D array like object (1 Point) Series DataFrame dictionary Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    I want to get visualized statistics from my data in mongodb using matplotlib, but the way I'm using ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    I want the first subplot to only include 'Máximo', 'Média', 'Mínimo', and the second to only ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    2.A feature of Microsoft Word which is used to create multiple copies of letters and e-mails is (a) Mail (b) ... merge (d) data source Select the correct answer from above options...
asked Dec 23, 2021 in Education by JackTerrance
0 votes
    1. Name the term which is used to join two separate arrays into a single array. 2.How are the following ... ii) primitive type data Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    If A and B are two events such that P(A) = 1/2, P(B) = 1/3 , P(A/B) = 1/4 , then P(A' ∩ B' ) equals A. 1/12 B. 3/4 C. 1/4 D. 3/16 Select the correct answer from above options...
asked Nov 20, 2021 in Education by JackTerrance
0 votes
    If a giraffe has two eyes, a monkey has two eyes, and an elephant has two eyes, how many eyes do we have? A) 3 B) 4 C) 1 D) 2...
asked Feb 10, 2021 in Education by JackTerrance
0 votes
    ________ is used to create a plot to illustrate patterns of missing values. (a) ggmissplot (b) ggmissing (c ... of R Programming Select the correct answer from above options...
asked Feb 15, 2022 in Education by JackTerrance
0 votes
    I have created a fiddle to explain what I want : https://jsfiddle.net/silentway/aro5kq7u/3/ The ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    Shown below is the input NumPy array. Delete column two and replace it with the new column given below....
asked Apr 24, 2021 in Technology by JackTerrance
...