Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In python 3, how do I upload a txt file and manipulate it so that the file gives an average, max, and min and how
In python 3, how do I upload a txt file and manipulate it so that the file gives an average, max, and min and how do I add a new column to the txt file? The txt file is below and is called "data" and gives the name, height, and weight. How do I add a new column for BMI which is weight/(height^2) and find the average, max, and min for the columns? The first image is what the txt file gives and the second image is what the python code is suppose to give and look like.
Name Joe Mary Dion Kayla Jose Sofia Erik Sara Height (m) Weight (kg) 72.57 1.82 1.60 63.50 1.90 90.71 1.72 66.31 1.78 70.23 1.63 65 1.98 92.21 1.57 65.77
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started