Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

This answer was rated:

Questions on python3 pandas Write a program that uses pandas…

Questions on python3 pandas Write a...
Questions on python3 pandas
Write a program that uses pandas to plot a regression line, that is, the line with the best fit through a
collection of points. First, ask the user to specify the data points by clicking on them in a graphics
window. To find the end of input, place a small rectangle labeled “Draw” in the lower left corner of
the window; the program will stop gathering points when the user clicks inside the rectangle.
Draw all points on the graphics window.
Collect the points in a dictionary; convert the dictionary to a DataFrame, and use pandas to perform
computation without using loops.
Use pandas “sum” function; do not use pandas function for average.
If the user enters no point or one point, program prints a message “You need at least two points for a
regression line” and terminates.
Show More
Show Less
Ask Your Own Homework Question
Answered in 21 hours by:
3/25/2018
Ingo U
Ingo U, Software Engineer
Category: Homework
Satisfied Customers: 796
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
Verified

Hi,

I'm working on a solution - when is this due?

Ask Your Own Homework Question
Customer reply replied 3 months ago
It is today 9pm(MST).
Customer reply replied 3 months ago
I have more information and what I started.

OK, great, please post everything you have... assuming you still want help(?)

Ask Your Own Homework Question
Customer reply replied 3 months ago
Ya, I need help. Do I have to attach it here? I mean if it's public.

It's not really all that visible here, or you can use wikisend.

Ask Your Own Homework Question
Customer reply replied 3 months ago
http://wikisend.com/download/573694/doc.zip

got it

Ask Your Own Homework Question
Customer reply replied 3 months ago
Thanks for your help

wikisend is giving me trouble at the moment so I'm attaching the solution (in a zip folder) here. You can always ask customer service to make it private if it bothers you too much.

The code appears to work as required on my end. Please let me know if you need anything else!

Ingo

Ask Your Own Homework Question
Customer reply replied 3 months ago
It is perfect but in the window the "draw" button should be in the lower left corner of the window( actually I can fix that) and the second thing is on the output Point 1:
x1 =
x2 =
Point 2:
Customer reply replied 3 months ago
is not present
Customer reply replied 3 months ago
I am not allowed to use lambda. is there another way to change that, please.thanks
Customer reply replied 3 months ago
One last point the program should terminate after showing “You need at least two points for a
regression line” message.thanks

OK, I will try to address all of your concerns in short order. On the last one, though, I believe it does terminate after that message since there is nothing left to do but return from main (the entire "else" section is not executed) Have you run a test case and seen it do something other than exit after printing the message?

Ask Your Own Homework Question

If you can't use the lambda construct, have you been shown the instructor's preferred way of performing vector operations? Perhaps some class notes or previous assignments?

Ask Your Own Homework Question
Customer reply replied 3 months ago
Thanks for the help. Yes, you are write the program prints the message, terminates and waits for a click to close.
Customer reply replied 3 months ago
Maybe on the attached exercise, 10.5 have similarity with this one.

OK, have a look a the updated version. The lambda really is just a shortcut to write functions you only need in place right at the place where you need them. Short of exact text output formatting, I hope I've addressed your issues...let me know. Happy to tweak as needed.

Ingo U
Ingo U, Software Engineer
Category: Homework
Satisfied Customers: 796
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
Verified
Ingo U and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 3 months ago
This one is perfect, Ingo U.
Customer reply replied 3 months ago
It is clear and understands all of it.But what are these two functions do?
def multxy(row):
return row[0] * row[1]def sqrx(row):
return row[0] * row[0]
Customer reply replied 3 months ago
Thank you, ***** ***** appereciate your help.

Hi,

Glad I could be of help, thanks for accepting my answer!
And, an extra THANKS for the bonus!

The multxy and sqrx functions are what we needed to write to use the "apply" function of the pandas DataFrame (without the lambda gizmo) .. simply put, the "apply" function applies the specified function to every row in the DataFrame.. so in our case, column 0 is X and column 1 is Y, so multiplying X*Y for a row looks like row[0] * row[1]. Calculating the square of column X (i.e. 0) becomes

return row[0] * row[0]

To ask me a future question directly, bookmark and use this link:

http://www.justanswer.com/computer/expert-ingou/

When you post a new question, please also put "FOR INGO U ONLY" at the beginning of the question; it'll help catch my eye.
If someone else responds before I do, you can work with them, or ask them to notify me. Of course, I hope that I've earned your confidence and will get the opportunity to assist you again.

Regards,
Ingo

Ask Your Own Homework Question
Customer reply replied 3 months ago
HI Ingo U,I have one question on K-means algorithm, and I started to some point but couldn't finish it.Before I post it on your wall, I went to know if you have the experiance on k-means algo or not?
This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
Customer reply replied 3 months ago
No problem.
Thanks.
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a tutorLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask Ingo U Your Own Question
Ingo U
Ingo U
Ingo U, Software Engineer
Category: Homework
Satisfied Customers: 796
796 Satisfied Customers
Experience: Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL

Ingo U is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

5,867 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,556 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,698 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,190 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Need help with the following assignment. The chapter is all
Hello there, need help with the following assignment. The chapter is all about functions within python. I am using python 3.6 with WingIDE.Individual programming assignments:Pinwheel Redux. Name the p… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
I need to make a program that makes a histogram that makes a
I need to make a program that makes a histogram that makes a histogram of test scores using arrays and functions. … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHON
COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHON ASSIGNMENT #6 (FILE ENCRYPTION) (DICTIONARIES, FILES, EXCEPTIONS) Create the Python code for a program that will allow users to encrypt or de… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
. I need it in Raptor program Flowchart (Your flowchart
.Hi I need it in Raptor program Flowchart (Your flowchart will start by declaring the variables needed, then it will call the getNames() module. Next, in a loop you will call the rollDice module and d… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
I have a simple programming assignment that needs to be
I have a simple programming assignment that needs to be completed. I have most of it completed, just need two parts to be added to make it more personalized. I attached the project.… read more
Ingo U
Ingo U
Software Engineer
Master's Degree
796 satisfied customers
Design a software system to perform functions using VISIO
Design a software system to perform functions using VISIO for drawing and word processing for reports. Instructions listed below: https://www.mediafire.com/?az77qmuna97811b I won't need until 02/09/20… read more
Expert
Expert
1: Writing an Applet with Graphics In this Programming Activity,
1: Writing an Applet with Graphics In this Programming Activity, you will write an applet that uses graphics. You will draw a picture of your own design. The objective of this programming activity is … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
hello, i have another assignment I need assistance with. are
hello, i have another assignment I need assistance with. are you available? it would be using python and raptur.… read more
active1065
active1065
Bachelor
82 satisfied customers
Looking for some help with Exercise 5.17 on page 194 of Deitel,
Looking for some help with Exercise 5.17 on page 194 of Deitel, H. M., & Deitel, P. J. (2012). Java how to program (9th ed.). Upper Saddle River, NJ: Pearson Publishing Co. )… read more
R.R. Jha
R.R. Jha
Bachelor\u0027s Degree
150 satisfied customers
using java to create a simple drawing program. It will work
deadline for this is by 2pm this Friday using java to create a simple drawing program. It will work by using a matrix as the drawing area, onto which filled rectangles of various sizes and formed from… read more
Expert
Expert
1. Imagine that youve created a drawing that contains randomly
1. Imagine that you've created a drawing that contains randomly spaced and different sized circles, squares, and stars. You now want to rearrange the stars by using the MOVE edit option. In this situa… read more
Mr. Wilson
Mr. Wilson
Teacher
Master\u0027s Degree
200 satisfied customers
1. Present the difference between subprogram and function,
1. Present the difference between subprogram and function, regarding the transfer of data between modules. 2. Write a program that asks the user to enter the value of Celsius degree and display the eq… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
Using JAVA use Try/Catch exception as required to your input
Using JAVA use Try/Catch exception as required to your input error where ever it's required. 1) Design a class (i.e. user define data type) for student record to hold the following information for eac… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
For problems 1-3 you must: Write a Python (.py) program Test,
For problems 1-3 you must: Write a Python (.py) program Test, debug, and execute the Python program Submit a copy of your commented source code on-line (10 pts.) Using a for loop, write a program that… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
Write a program to converts temperatures between Fahrenheit
Write a program to converts temperatures between Fahrenheit and Celsius. Your program should print a brief message describing what it does, and then prompt the user to enter "1" if they would like to … read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,867 satisfied customers
Find a Java application on the Web and describe how the program
Find a Java application on the Web and describe how the program structure functions. Describe the application in as much detail as possible. What functionality does the application have? How could you… read more
Jayendra
Jayendra
Bachelor's Degree
378 satisfied customers
Payroll Program Part 3 Resource Appendix A Modify the ...
Payroll Program Part 3 Resource: Appendix A Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constru… read more
Scott
Scott
MIT Graduate
Master\u0027s Degree
213 satisfied customers
What are the fundamental differences between Windows , Mac ...
What are the fundamental differences between Windows®, Mac OS®, UNIX, and Linux operating systems for personal computers? What unique characteristics do mainframe operating systems have? Post a 200-30… read more
the prof
the prof
computing consultant
Master's Degree
160 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x