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 29 days ago
It is today 9pm(MST).
Customer reply replied 29 days 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 29 days 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 29 days ago
http://wikisend.com/download/573694/doc.zip

got it

Ask Your Own Homework Question
Customer reply replied 29 days 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 29 days 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 29 days ago
is not present
Customer reply replied 29 days ago
I am not allowed to use lambda. is there another way to change that, please.thanks
Customer reply replied 29 days 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 29 days 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 29 days 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 29 days ago
This one is perfect, Ingo U.
Customer reply replied 29 days 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 28 days 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 10 days 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 9 days ago
No problem.
Thanks.
Was this answer helpful?
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,731 satisfied customers

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

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,551 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,636 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,161 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
4. What is entered into a cell that is typically numeric and
4. What is entered into a cell that is typically numeric and can be used for calculations? A. Function B. Label C. Value D. Tab Question 5 of 20 : Select the best answer for the question. 5. Which is … read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,382 satisfied customers
1. What keeps Pip from accepting Herbert's job offer? A. His
1. What keeps Pip from accepting Herbert's job offer? A. His pride in being a gentleman B. A reluctance to work for Herbert C. Caring for Magwitch during his illness and trial D. Feeling that becoming… read more
Chris M.
Chris M.
M.S.W. Social Work
Master's Degree
2,636 satisfied customers
I have a school assignment; I have to write a motion in
Hello there, I have a school assignment; I have to write a motion in liming regarding "Plaintiff lying to a professor about a stolen laptop" Plaintiff told professor laptop was stolen but one of her f… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
Mean number of goals scored by the Panthers: 13; Data set:
Mean number of goals scored by the Panthers: 13; Data set: 9,15,14 (what is this missing #)?Thank you!… read more
Brad Summers
Brad Summers
Bachelor of Education
2 satisfied customers
I have a question do want me to type it to you or is there a
i have a question do want me to type it to you or is there a fee that u will charge … read more
Ashok Kumar
Ashok Kumar
Master\u0027s Degree
291 satisfied customers
In a population study 80% are Mexiican American. From the
In a population study 80% are Mexiican American. From the probability chart 1-12f find out what the chances are x=12. P=.0625 … read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
Choose one of the thirteenth-century literary forms
Choose one of the thirteenth-century literary forms discussed in the lesson "Thirteenth-Century Literature." Find more information about it in an encyclopedia or an anthology of medieval literature. R… read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
I just need some help for my Tefl course. I need to make a
Hello. i just need some help for my Tefl course. I need to make a straight-arrow ESA lesson plan for an elementary level class of adults in which the students would learn the vocabulary for finding pl… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
I need help with an excel document. I have an excel document
I have an excel document that requires financial data put in the right columns from financial statement, balance sheet, and cash flow report from Alere Inc. I have the excel document and required financial report. … read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
Which of the following would measure the renal vein function
Which of the following would measure the renal vein function from the testicles to the kidney? Lower limb arterial doppler, lower limb venous doppler, carotid doppler, upper limb arterial doppler, upp… read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
Im trying to write an equation to test the following
Im trying to write an equation to test the following hypotheses - Districts that provide employee cybersecurity education provide more cybersecurity education opportunities for students than districts… read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
I have got an audio assignment in Spanish which I had to
I have got an audio assignment in Spanish which I had to translate and submit.. so can you help me with that? … read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,382 satisfied customers
Chapter: 10-11 Assignment: Do some research and write a 2-3
Chapter: 10-11Assignment: Do some research and write a 2-3 page paper on the use of Java in the browser. Pay particular attention to the future of the Java "plug-in" for browsers. Please include a dis… read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
I need help with my stats hw. Customer Amount of Tip ($)
Customer Amount of Tip ($) Amount of Bill ($) Number of Diners (Y) (X1) (X2) 1 $7.00 $48.97 5 2 $4.50 $28.23 4 3 $1.00 $10.65 1 4 $2.40 $19.82 3 5 $5.00 $28.62 3 6 $4.25 $24.83 2 7 $0.50 $6.24 1 8 $6.00 $49.20 4 9 $5.00 $43.26 3 10 $4.75 $31.36 4 11 $5.25 $32.87 4 12 $6.00 $34.99 3 13 $4.00 $33.91 4 14 $3.35 $23.06 2 15 $0.75 $4.65 1 16 $3.30 $23.59 2 17 $3.50 $22.30 2 18 $3.25 $32.00 2 19 $5.40 $50.02 4 20 $2.25 $17.60 3 21 $5.50 $44.47 4 22 $3.00 $20.27 2 23 $1.25 $19.53 2 24 $3.25 $27.03 3 25 $3.00 $21.28 2 26 $6.25 $43.38 4 27 $5.60 $28.12 4 28 $2.50 $26.25 2 29 $9.25 $56.81 5 30 $8.25 $50.65 5 … read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
The bank will be minute based. Each customer will be added
The bank will be minute based. Each customer will be added to the queue at a random interval from 1 to 4 minutes. Run the simulation for 480 minutes. Use the following Algorithm: . 1) Choose a random … read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
27 satisfied customers
Seem to be stuck in Adapted Mind at Level 28 of 4th grade
Seem to be stuck in Adapted Mind at Level 28 of 4th grade math. Can you help with that? … read more
GLENN
GLENN
Master of Mathematics
395 satisfied customers
Can you please help me with the following Countries with a
can you please help me with the following Countries with a socialist background have been moving toward the decentralization of healthcare delivery thereby allowing more of a private sector. … read more
lani_s
lani_s
Bachelor\u0027s Degree
47 satisfied customers
C++ can also gve me the algoritm Part I: Create three
c++ can also gve me the algoritmPart I:Create three arrays: (Be sure to do this first) You can put the data into a file (extra credit) or hard code it in main. The data is as follows:NAMES GRADES AGES… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,731 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