Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python coding Specific goals: O 1. Edit Force AspirateTest.combine_results() Function creates avg_test pandas column by taking the average of displacement and force columns together .

python coding
image text in transcribed
Specific goals: O 1. Edit Force AspirateTest.combine_results() Function creates avg_test pandas column by taking the average of displacement and force columns together . use pandas.loc( to isolate the force columns, then take the average of this subset of data local must be used on a dataframe: all_test.loc[rows_to_keep, columns_to_keepl o too keep all rows or columns, use a colon . To select columns by name use, Ex(force columns_to_keep): self.all_test.columns.str.conatins("Force") 2. Edit TestAnalysis.py to combine the avg_test of each Force AspirateTest object created into a single dataframe o retrieve the property from each object, and combine into a dataframe you will need to create an empty dataframe . DataFrame['New_Column_Name'] = pandas_series_object 3. Create a plot from the average test data collected from (2) . Use a line plot Displacement vs Force o include titles, legend o use pandas.DataFrame.plot() or: plt.plot(x_values, y values, legend='test_name') O Please upload your completed TestAnalysis.py directly to canvas. Specific goals: O 1. Edit Force AspirateTest.combine_results() Function creates avg_test pandas column by taking the average of displacement and force columns together . use pandas.loc( to isolate the force columns, then take the average of this subset of data local must be used on a dataframe: all_test.loc[rows_to_keep, columns_to_keepl o too keep all rows or columns, use a colon . To select columns by name use, Ex(force columns_to_keep): self.all_test.columns.str.conatins("Force") 2. Edit TestAnalysis.py to combine the avg_test of each Force AspirateTest object created into a single dataframe o retrieve the property from each object, and combine into a dataframe you will need to create an empty dataframe . DataFrame['New_Column_Name'] = pandas_series_object 3. Create a plot from the average test data collected from (2) . Use a line plot Displacement vs Force o include titles, legend o use pandas.DataFrame.plot() or: plt.plot(x_values, y values, legend='test_name') O Please upload your completed TestAnalysis.py directly to canvas

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago