Skip to content

cestlarumba/fuzzy-system

Repository files navigation

About the task

Hi ! 👋 I understand the task was meant to be delivered using Scala. However, due to the limited time I have, and spent some time trying to learn and figure out the language, I opted for this solution.

Instead, I am submitting my code using Python. The goal is that you have an idea of my coding skills, which I believe is better than sending nothing or something I'm not happy with.

Having dedicated part of the time I had to Scala, didn't allow me to spend as much as I would have liked in the Python solution either, but I'm happier with this than I was with the Scala sketches I never manage to make work.

I hope you understand.

Have a good day !

Miguel

Setup

Install poetry

curl -sSL https://install.python-poetry.org | python3 -

Make sure you have installed 3.8 or higher version of Python and install dependencies by running from the root folder of the project.

poetry install

Tasks

Use the CLI to run the tasks, make sure you add poetry run at the beginning. All task also require of a --path parameter to indicate the folder where both .csv are located. Assuming the names are still the same.

❗ Please note that you can always use the --help to learn more about the commands.

Monthly flights

poetry run python app.py quantexa --path ~/path/to/files monthly-flights

Frequent flyers

Use the -t/--top to limit the output to the top N passengers.

poetry run python app.py quantexa --path ~/path/to/files monthly-flights

Longest run

Use the -x or --exclude parameter to exclude countries (optional).

poetry run python app.py quantexa --path ~/path/to/files longest-run -x uk -x us

Flown together

Available parameters:

  • -d/--dates to narrow down your search.
  • -m/--min-shared to indicate the min of flights in common to be part of the list.
  • -t/--top to limit the output to the top N passengers sharing flights.
poetry run python app.py quantexa --path ~/Downloads/data most-flown-together -d 2017-01-01 2017-02-01

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages