Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: function not working
Post: RE: function not working

Hi Larz, I saw where I was making a mistake. I needed murder_rates.where('Year, are.equal_to(year))
tryingtolearnpython General Coding Help 2 2,970 Jul-23-2018, 02:54 AM
    Thread: Foundations of Data Science Data 8.2x
Post: RE: Foundations of Data Science Data 8.2x

Hi Larz, I actually misunderstood the question. They are just asking to choose between 1-4. for example: extra_info = [1, 3]
tryingtolearnpython Homework 2 3,669 Jul-23-2018, 02:48 AM
    Thread: function not working
Post: function not working

def most_murderous(year): # Assign most to a table of the most murderous states this year in ascending order. data_for_year = murder_rates('Year', are.equal_to(year)) sorted_data = data_fo...
tryingtolearnpython General Coding Help 2 2,970 Jul-22-2018, 11:53 AM
    Thread: Joining two tables together
Post: Joining two tables together

Hi everyone, I did the following: # The next lines are provided for you. They create a table # containing only the Alaska information and one containing # only the Minnesota information. ak = murde...
tryingtolearnpython General Coding Help 0 2,236 Jul-22-2018, 11:29 AM
    Thread: Foundations of Data Science Data 8.2x
Post: Foundations of Data Science Data 8.2x

State Year Population Murder Rate Alaska 1960 226,167 10.2 Alaska 1961 234,000 11.5 Alaska 1962 246,000 4.5 Alaska 1963 248,000 6.5 Alaska 1964 250,000 10.4 Alaska 1965 253,000 6.3 A...
tryingtolearnpython Homework 2 3,669 Jul-22-2018, 10:45 AM
    Thread: Def - Return Question
Post: RE: Def - Return Question

thank you very much volcano63
tryingtolearnpython General Coding Help 4 2,801 Jul-04-2018, 03:13 AM
    Thread: Def - Return Question
Post: RE: Def - Return Question

Hi volcano63, Thanks for the explanation, can I please clarify. So when I call the function histograms(full_data), in addition to the histograms it will give me the value of age_bins? I actually don'...
tryingtolearnpython General Coding Help 4 2,801 Jul-01-2018, 11:04 AM
    Thread: Def - Return Question
Post: Def - Return Question

Hi Everyone, I'm trying to understand the below code. My question is why is it returning salary_bins? So from what I understand it first defines the table columns, creates the bins and then draws th...
tryingtolearnpython General Coding Help 4 2,801 Jul-01-2018, 08:11 AM
    Thread: question on using for
Post: RE: question on using for

Good conversation going here, thanks everybody. I think I understand now thank you all very much. I'm new to Python and I'm trying to learn it from videos on edx so your input really helps thanks.
tryingtolearnpython General Coding Help 15 7,277 Jun-18-2018, 07:17 AM
    Thread: basic def / if question
Post: RE: basic def / if question

Hi J.Crater, thanks for the explanation. I think a lot of what you said went over my head :[ . Let me Google what you posted and I will try to make sense of it.
tryingtolearnpython General Coding Help 2 2,629 Jun-18-2018, 07:11 AM
    Thread: question on using for
Post: question on using for

trials = 10000 successes = 0 for _ in np.arange(trials): rolls = np.random.choice(dice, k) if sum(rolls == 6) > 0: successes = successes + 1 successes / trialsin the code above, w...
tryingtolearnpython General Coding Help 15 7,277 Jun-17-2018, 11:28 AM
    Thread: basic def / if question
Post: basic def / if question

Hi everyone, I'm very new to Python so my questions may be very basic for most of you. I am not sure I understand the below function. The part I am having trouble understanding is: reactions = nach...
tryingtolearnpython General Coding Help 2 2,629 Jun-15-2018, 05:13 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020