Question: please help in python, I don't know how to fix it. im new and don't know how can finish them. thank In [68]; import pandas
please help in python, I don't know how to fix it. im new and don't know how can finish them. thank

In [68]; import pandas as pd import numpy as np df = pd.read_csv ('cars.csv') # 1. addition and subtraction A = df.iloc[:, 3] B = df.iloc[:, -3] SumAB = A+B SubAB = A-B print("Sum:{}".format(SUMAB)) print("Subtraction:{}".format(SubAB)) # 2. compute the transpose of the second matrix: C = B^T, and print the shape of c C= B. transpose() # 3. compute the product between A and C, and print the result and its shape product1=np. dot(A,C) print("product(A*C) in shape: {}".format(product1.shape)) # 4. compute the transpose of the first matrix: D = A'T, and print the shape of D D = A.transpose print("D=".format(D.shape))) # 5. compute the product between D and B, and print the result and its shape product2= np. dot(D,B) print(" product D*B".format(product2.shape)) NameError Traceback (most recent call last) /var/folders/gg/p9pzprdj15xgdq38t4159m380000gn/T/ipykernel_2029/2491841339.py in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
