Create a program that adds the first and third rows

Assignment Help Python Programming
Reference no: EM132382444

Question :

a) Create a program that adds the first and third rows of the following data, then prints the result

import numpy as np

data = np. array ([ [ 2, 5, 6, 2],

[o , 1, 0 , 0],

[1 , 1, - 1 , 1 ],

[ 20, 20, 1, 0],

[ 9 , 1.6 , 4.2, 2] , )

Am I suppose to slice the array ? Because I only need part of the array.

b) Use sample- data to create a scatter plot with error bars, For the error bar, do I need to use pyplot. errorbar ( ) ? Do I slice the array of data or use the unpack = True option to extract the x, y and oy values?

Reference no: EM132382444

Questions Cloud

Calculate the mean of a list of numbers and print the result : A function to accept a list of numbers as input. The program will output the min, max, mean, and median of the list including the label;
Make a function that counts using a while loop : A function to calculate the median of a list of numbers and print the result. Make a function that counts using a while loop.
What will be the depth where you trigger the alarm : Write the program code and develop a document that demonstrates you can use the code to solve this problem using iterative techniques.
Design a function that consumes a trafficlight : Design a function that consumes a TrafficLight and produces the next TrafficLight. Here, we'll assume that the traffic light has the expected behaviour.
Create a program that adds the first and third rows : Create a program that adds the first and third rows of the following data, then prints the result. Use sample- data to create a scatter plot with error bars.
Budding performance principles : Develop an instruction manual that could walk a lay person through the process of checking for potential sources of indoor air problems.
Create a program in python eclipse that asks the user : Create a program in Python Eclipse that asks the user for an integer that represent the date in the MMDDYYYY format and then displays the date.
Use a for loop to display each element in a separate line : Use the range function to generate this sequence of integers: 5, 9, 13, 17 and 21. Save the numbers in a list. Display the list.
List of integers path that represents a proposed path : Create function post_time that returns how long it will take Johnny's card to travel the given path using divide and conquer.

Reviews

Write a Review

Python Programming Questions & Answers

  Create function named isletter that has a parameter c

Create function named isLetter that has a parameter C. isLetter returns true if the argument is an upper or lower case letter.

  Create a class hand in its own module

Create a class Hand in its own module. One object of class Hand represents a hand of cards and so one object stores a number of Card objects.

  Compute the sum of the perfect squares

Assume there is a variable, h already associated with a positive integer value. Write the code necessary to compute the sum of the perfect squares.

  Establish a socket to a dns server

A simple network application socket connection communication programming lab. Query the DNS server for a DNS host name or IP address.

  Write a program using the following python functions

You are required to write the following Python functions. Make sure you understand where each function fits into the system described above.

  Write a code for a simple cellular automata game

Write a code for a simple cellular automata game, called Conway's Game of Life. In this game, you have a grid where pixels can either be on or off.

  Print a line containing twice the original number

What is the code that for each of the numbers in the List1, print a line containing twice the original number. For example, List1 =[3, 1, 5] would print 6 2 10.

  Describes the behaviour of the vending machine system

Design and model two classes:Productand VendingMachine - Create an activity chart which describes the behaviour of the vending machine system

  A python program that contains a main function

Write a PYTHON program that contains a main function and a custom, void function namedshow_larger that takes two random integers as parameters.

  Develop a car logo recognition app

Develop a car logo recognition app for Artificial recognition module - Basically you have to take a picture of the logo of a car and the app should recognise which car company is that.

  Make automobile class that will be used by a dealership

Make automobile class that will be used by a dealership as a vehicle inventory program. The following attributes should be present in your automobile class.

  Program to solve shock-wave equation

ENGR30003 - Write your C program such that it uses the Newton-Raphson method - demonstrate your understanding of solving engineering problems

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd