Skip to content

Instantly share code, notes, and snippets.

View computationalcore's full-sized avatar

Vin Busquet computationalcore

View GitHub Profile
@computationalcore
computationalcore / a_first_keyboard_conundrum.py
Last active February 16, 2024 00:10
This script offers a computational approach to uncover the longest words that can be composed exclusively with the top row letters of a QWERTY keyboard, leveraging an open-source English dictionary. It aims to enrich the puzzle experience by introducing additional possibilities beyond those presented in 'The Great Sherlock Holmes Puzzle Book'.
"""
A First Keyboard Conundrum - Puzzle Solution
I was attempting to solve "A First Keyboard Conundrum" from Dr. Gareth Moore's
captivating collection, "The Great Sherlock Holmes Puzzle Book: A Collection of
Enigmas to Puzzle Even the Greatest Detective of All", tried manually and
encountered a different answer from the one provided.
In summary, the puzzle expects you to find the longest word that can be composed
by the letters from the first row of a QWERTY keyboard: "QWERTYUIOP".
@computationalcore
computationalcore / a_strange_case_solution.py
Last active February 7, 2024 20:50
A Strange Case - Puzzle Solution: I was trying to solve "A STRANGECASE" from "The Amazing Sherlock Holmes Puzzle Book: A Cornucopia of Conundrums Inspired by the World's Greatest Detective", and found different answers. To validate mine, I decided to create a program. Here are my manuscript notes for solving this puzzle: https://i.imgur.com/3b8y…
"""
A Strange Case - Puzzle Solution
I was attempting to solve "A STRANGECASE" from "The Amazing Sherlock Holmes
Puzzle Book: A Cornucopia of Conundrums Inspired by the World's Greatest
Detective" and encountered a different answer from the provided one. To
validate my approach, I developed this program. For a detailed look into my
problem-solving process, here are my manuscript notes:
https://i.imgur.com/3b8yaKa.jpg
import pandas as pd
# Read data from Excel File
xlsx_path = 'https://www.ecdc.europa.eu/sites/default/files/documents/COVID-19-geographic-disbtribution-worldwide.xlsx'
df_covid = pd.read_excel(xlsx_path,sheet_name='COVID-19-geographic-disbtributi')
print('--------------- HEAD ---------------')
# head() return the top 5 rows of the dataset
# tip: You can specify the number of rows you'd like to see as follows: df_covid.head(10)
print(df_covid.head())

Keybase proof

I hereby claim:

  • I am computationalcore on github.
  • I am computational (https://keybase.io/computational) on keybase.
  • I have a public key ASB46HXow9hi0Uca1cO9mZpfRPIXQZ_f1evGbREiC2fACgo

To claim this, I am signing this object: