6 datasets found
  1. Grandpa Golf

    • kaggle.com
    zip
    Updated Sep 12, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    FletcherKennamer (2023). Grandpa Golf [Dataset]. https://www.kaggle.com/datasets/fletcherkennamer/grandpa-golf
    Explore at:
    zip(5860 bytes)Available download formats
    Dataset updated
    Sep 12, 2023
    Authors
    FletcherKennamer
    Description

    My Grandpa asked if the programs I was using could calculate his Golf League’s handicaps, so I decided to play around with SQL and Google Sheets to see if I could functionally recreate what they were doing.

    The goal is to calculate a player’s handicap, which is the average of the last six months of their scores minus 29. The average is calculated based on how many games they have actually played in the last six months, and the number of scores averaged correlates to total games. For example, Clem played over 20 games so his handicap will be calculated with the maximum possible scores accounted for, that being 8. Schomo only played six games, so the lowest 4 will be used for their average. Handicap is always calculated with the lowest available scores.

    This league uses Excel, so upon receiving the data I converted it into a CSV and uploaded it into bigQuery.

    First thing I did was change column names to best represent what they were and simplify things in the code. It is much easier to remember ‘someone_scores’ than ‘int64_field_number’. It also seemed to confuse SQL less, as int64 can mean something independently. (ALTER TABLE grandpa-golf.grandpas_golf_35.should only need the one RENAME COLUMN int64_field_4 TO schomo_scores;)

    To Find the average of Clem’s scores: SELECT AVG(clem_scores) FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 8; RESULT: 43.1

    Remembering that handicap is the average minus 29, the final computation looks like: SELECT AVG(clem_scores) - 29 FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 8; RESULT: 14.1

    Find the average of Schomo’s scores: SELECT AVG(schomo_scores) - 29 FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 6; RESULT: 10.5

    This data was already automated to calculate a handicap in the league’s excel spreadsheet, so I asked for more data to see if i could recreate those functions.

    Grandpa provided the past three years of league data. The names were all replaced with generic “Golfer 001, Golfer 002, etc”. I had planned on converting this Excel sheet into a CSV and manipulating it in SQL like with the smaller sample, but this did not work.

    Immediately, there were problems. I had initially tried to just convert the file into a CSV and drop it into SQL, but there were functions that did not transfer properly from what was functionally the PDF I had been emailed. So instead of working with SQL, I decided to pull this into google sheets and recreate the functions for this spreadsheet. We only need the most recent 6 months of scores to calculate our handicap, so once I made a working copy I deleted the data from before this time period. Once that was cleaned up, I started working on a function that would pull the working average from these values, which is still determined by how many total values there were. This correlates as follows: for 20 or more scores average the lowest 8, for 15 to 19 scores average the lowest 6, for 6 to 14 scores average the lowest 4 and for 6 or fewer scores average the lowest 2. We also need to ensure that an average value of 0 returns a value of 0 so our handicap calculator works. My formula ended up being:

    =IF(COUNT(E2:AT2)>=20, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&8)))), IF(COUNT(E2:AT2)>=15, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&6)))), IF(COUNT(E2:AT2)>=6, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&4)))), IF(COUNT(E2:AT2)>=1, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&2)))), IF(COUNT(E2:AT2)=0, 0, "")))))

    The handicap is just this value minus 29, so for the handicap column the script is relatively simple: =IF(D2=0,0,IF(D2>47,18,D2-29)) This ensures that we will not get a negative value for our handicap, and pulls the basic average from the right place. It also sets the handicap to zero if there are no scores present.

    Now that we have our spreadsheet back in working order with our new scripts, we are functionally done. We have recreated what my Grandpa’s league uses to generate handicaps.

  2. S1 Data -

    • plos.figshare.com
    • datasetcatalog.nlm.nih.gov
    xlsx
    Updated Jun 2, 2023
    + more versions
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu (2023). S1 Data - [Dataset]. http://doi.org/10.1371/journal.pone.0284767.s001
    Explore at:
    xlsxAvailable download formats
    Dataset updated
    Jun 2, 2023
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    Nigeria adopted dolutegravir (DTG) as part of first line (1L) antiretroviral therapy (ART) in 2017. However, there is limited documented experience using DTG in sub-Saharan Africa. Our study assessed DTG acceptability from the patient’s perspective as well as treatment outcomes at 3 high-volume facilities in Nigeria. This is a mixed method prospective cohort study with 12 months of follow-up between July 2017 and January 2019. Patients who had intolerance or contraindications to non-nucleoside reverse-transcriptase inhibitors were included. Patient acceptability was assessed through one-on-one interviews at 2, 6, and 12 months following DTG initiation. ART-experienced participants were asked about side effects and regimen preference compared to their previous regimen. Viral load (VL) and CD4+ cell count tests were assessed according to the national schedule. Data were analysed in MS Excel and SAS 9.4. A total of 271 participants were enrolled on the study, the median age of participants was 45 years, 62% were female. 229 (206 ART-experienced, 23 ART-naive) of enrolled participants were interviewed at 12 months. 99.5% of ART-experienced study participants preferred DTG to their previous regimen. 32% of particpants reported at least one side effect. “Increase in appetite” was most frequently reported (15%), followed by insomnia (10%) and bad dreams (10%). Average adherence as measured by drug pick-up was 99% and 3% reported a missed dose in the 3 days preceding their interview. Among participants with VL results (n = 199), 99% were virally suppressed (

  3. pone.0284767.t001 - High acceptability and viral suppression rate for...

    • figshare.com
    • datasetcatalog.nlm.nih.gov
    xls
    Updated Jun 2, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu (2023). pone.0284767.t001 - High acceptability and viral suppression rate for first-Line patients on a dolutegravir-based regimen: An early adopter study in Nigeria [Dataset]. http://doi.org/10.1371/journal.pone.0284767.t001
    Explore at:
    xlsAvailable download formats
    Dataset updated
    Jun 2, 2023
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Area covered
    Nigeria
    Description

    pone.0284767.t001 - High acceptability and viral suppression rate for first-Line patients on a dolutegravir-based regimen: An early adopter study in Nigeria

  4. Excel file containing compiled primary experimental data subjected to...

    • plos.figshare.com
    xlsx
    Updated Sep 13, 2024
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Jordan Jennings; Harrison Bracey; Jun Hong; Danny T. Nguyen; Rishav Dasgupta; Alondra Vázquez Rivera; Nicolas Sluis-Cremer; Jiong Shi; Christopher Aiken (2024). Excel file containing compiled primary experimental data subjected to statistical analyses. [Dataset]. http://doi.org/10.1371/journal.ppat.1011810.s002
    Explore at:
    xlsxAvailable download formats
    Dataset updated
    Sep 13, 2024
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Jordan Jennings; Harrison Bracey; Jun Hong; Danny T. Nguyen; Rishav Dasgupta; Alondra Vázquez Rivera; Nicolas Sluis-Cremer; Jiong Shi; Christopher Aiken
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    Excel file containing compiled primary experimental data subjected to statistical analyses.

  5. Summary statistics of the CD4+ cell count disaggregated by ART status.

    • plos.figshare.com
    • datasetcatalog.nlm.nih.gov
    xls
    Updated Jun 2, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu (2023). Summary statistics of the CD4+ cell count disaggregated by ART status. [Dataset]. http://doi.org/10.1371/journal.pone.0284767.t004
    Explore at:
    xlsAvailable download formats
    Dataset updated
    Jun 2, 2023
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    Summary statistics of the CD4+ cell count disaggregated by ART status.

  6. Summary statistics of plasma HIV-1 RNA viral load results.

    • plos.figshare.com
    • datasetcatalog.nlm.nih.gov
    xls
    Updated Jun 2, 2023
    Share
    FacebookFacebook
    TwitterTwitter
    Email
    Click to copy link
    Link copied
    Close
    Cite
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu (2023). Summary statistics of plasma HIV-1 RNA viral load results. [Dataset]. http://doi.org/10.1371/journal.pone.0284767.t003
    Explore at:
    xlsAvailable download formats
    Dataset updated
    Jun 2, 2023
    Dataset provided by
    PLOShttp://plos.org/
    Authors
    Opeyemi Abudiore; Ikechukwu Amamilo; Jennifer Campbell; Williams Eigege; Joseph Harwell; James Conroy; Justus Jiboye; Folu Lufadeju; Carolyn Amole; Owens Wiwa; Damien Anweh; Oche Ochai Agbaji; Alani Sulaimon Akanmu
    License

    Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
    License information was derived automatically

    Description

    Summary statistics of plasma HIV-1 RNA viral load results.

  7. Not seeing a result you expected?
    Learn how you can add new datasets to our index.

Share
FacebookFacebook
TwitterTwitter
Email
Click to copy link
Link copied
Close
Cite
FletcherKennamer (2023). Grandpa Golf [Dataset]. https://www.kaggle.com/datasets/fletcherkennamer/grandpa-golf
Organization logo

Grandpa Golf

Data from my Grandpa's Golf league that I reverse engineered

Explore at:
zip(5860 bytes)Available download formats
Dataset updated
Sep 12, 2023
Authors
FletcherKennamer
Description

My Grandpa asked if the programs I was using could calculate his Golf League’s handicaps, so I decided to play around with SQL and Google Sheets to see if I could functionally recreate what they were doing.

The goal is to calculate a player’s handicap, which is the average of the last six months of their scores minus 29. The average is calculated based on how many games they have actually played in the last six months, and the number of scores averaged correlates to total games. For example, Clem played over 20 games so his handicap will be calculated with the maximum possible scores accounted for, that being 8. Schomo only played six games, so the lowest 4 will be used for their average. Handicap is always calculated with the lowest available scores.

This league uses Excel, so upon receiving the data I converted it into a CSV and uploaded it into bigQuery.

First thing I did was change column names to best represent what they were and simplify things in the code. It is much easier to remember ‘someone_scores’ than ‘int64_field_number’. It also seemed to confuse SQL less, as int64 can mean something independently. (ALTER TABLE grandpa-golf.grandpas_golf_35.should only need the one RENAME COLUMN int64_field_4 TO schomo_scores;)

To Find the average of Clem’s scores: SELECT AVG(clem_scores) FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 8; RESULT: 43.1

Remembering that handicap is the average minus 29, the final computation looks like: SELECT AVG(clem_scores) - 29 FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 8; RESULT: 14.1

Find the average of Schomo’s scores: SELECT AVG(schomo_scores) - 29 FROM grandpa-golf.grandpas_golf_35.should only need the one LIMIT 6; RESULT: 10.5

This data was already automated to calculate a handicap in the league’s excel spreadsheet, so I asked for more data to see if i could recreate those functions.

Grandpa provided the past three years of league data. The names were all replaced with generic “Golfer 001, Golfer 002, etc”. I had planned on converting this Excel sheet into a CSV and manipulating it in SQL like with the smaller sample, but this did not work.

Immediately, there were problems. I had initially tried to just convert the file into a CSV and drop it into SQL, but there were functions that did not transfer properly from what was functionally the PDF I had been emailed. So instead of working with SQL, I decided to pull this into google sheets and recreate the functions for this spreadsheet. We only need the most recent 6 months of scores to calculate our handicap, so once I made a working copy I deleted the data from before this time period. Once that was cleaned up, I started working on a function that would pull the working average from these values, which is still determined by how many total values there were. This correlates as follows: for 20 or more scores average the lowest 8, for 15 to 19 scores average the lowest 6, for 6 to 14 scores average the lowest 4 and for 6 or fewer scores average the lowest 2. We also need to ensure that an average value of 0 returns a value of 0 so our handicap calculator works. My formula ended up being:

=IF(COUNT(E2:AT2)>=20, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&8)))), IF(COUNT(E2:AT2)>=15, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&6)))), IF(COUNT(E2:AT2)>=6, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&4)))), IF(COUNT(E2:AT2)>=1, AVERAGE(SMALL(E2:AT2, ROW(INDIRECT("1:"&2)))), IF(COUNT(E2:AT2)=0, 0, "")))))

The handicap is just this value minus 29, so for the handicap column the script is relatively simple: =IF(D2=0,0,IF(D2>47,18,D2-29)) This ensures that we will not get a negative value for our handicap, and pulls the basic average from the right place. It also sets the handicap to zero if there are no scores present.

Now that we have our spreadsheet back in working order with our new scripts, we are functionally done. We have recreated what my Grandpa’s league uses to generate handicaps.

Search
Clear search
Close search
Google apps
Main menu