Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Weighted average with multiple weights and groups
Post: Weighted average with multiple weights and groups

I am a beginner in Python and I am trying to improve my code - so I would appreciate some advice on how to improve the efficiency of the following. I have the following dataset: petdata = { 'an...
amyd Data Science 0 2,117 Oct-11-2019, 10:30 AM
    Thread: Pandas melt only on one variable (leaving other in long format)
Post: Pandas melt only on one variable (leaving other in...

Hi, I have the following data: import pandas as pd import numpy as np data = [ ['Dog', 5, 0.25,5.5,0.23], ['Cat', 3, 0.15,2.8,0.17],] df = pd.DataFrame(columns=["Type", "Weight_Apr_18",...
amyd Data Science 0 1,959 May-08-2019, 12:10 PM
    Thread: Pandas fillna based on conditions
Post: Pandas fillna based on conditions

I am pretty new at using Pandas, so I was wondering if anyone could help me with the below. Let's say I have this dataframe: import pandas as pd import numpy as np data = [ ['Rabbit', 2, 2], ...
amyd Data Science 1 15,911 May-03-2019, 10:41 AM
    Thread: Looping actions in an iframe using Selenium on Python
Post: RE: Looping actions in an iframe using Selenium on...

(Mar-06-2019, 08:13 PM)Larz60+ Wrote: please supply URLThe URL requires a paid subscription so you wouldn't be able to access it, which is why I did not include it in the original post-there are als...
amyd Web Scraping & Web Development 3 3,049 Mar-06-2019, 08:26 PM
    Thread: Looping actions in an iframe using Selenium on Python
Post: Looping actions in an iframe using Selenium on Pyt...

First of all, I would like to say I am very new to Python and web-scraping so I apologise if I am missing something quite obvious. I am trying to webscrape an iframe object containing a list of links....
amyd Web Scraping & Web Development 3 3,049 Mar-06-2019, 04:11 PM
    Thread: Distances between all combinations in datatset
Post: RE: Distances between all combinations in datatset

(Dec-11-2018, 09:39 PM)ichabod801 Wrote: That's going to be two separate things. First I would make another data set with the two id's and the distance, using something like this: list_x = df["east...
amyd General Coding Help 6 3,894 Dec-13-2018, 01:23 PM
    Thread: Distances between all combinations in datatset
Post: RE: Distances between all combinations in datatset

(Dec-11-2018, 02:16 PM)ichabod801 Wrote: (Dec-11-2018, 12:21 PM)amyd Wrote: what I am trying to achieve is essentially creating a new column in the data which answers the question "does this ID ha...
amyd General Coding Help 6 3,894 Dec-11-2018, 03:22 PM
    Thread: Distances between all combinations in datatset
Post: RE: Distances between all combinations in datatset

(Dec-10-2018, 02:38 PM)ichabod801 Wrote: If you don't want them stored in memory, don't store them in memory. Use a conditional to check before appending them to the list: for combo in combinations...
amyd General Coding Help 6 3,894 Dec-11-2018, 12:21 PM
    Thread: Distances between all combinations in datatset
Post: Distances between all combinations in datatset

I have a data set with a set of unique ids. Each of these ids has eastings and northings and a dummy variable which can take on the values of 1 or 0. I want to find whether, for each id, there is anot...
amyd General Coding Help 6 3,894 Dec-10-2018, 12:07 PM

User Panel Messages

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