def run():
    with open('survey_results_public.csv', encoding='utf-8') as f:
        print_question_separator('1. What is the most occuring profession?')
        question1.run(f)

        print_question_separator(
            '2. What is the distribution of answers for every country in %?')
        question2.run(f)

        print_question_separator(
            '3. What language do most developers work in?')
        question3.run(f)

        print_question_separator('4. What is the most popular IDE?')
        question4.run(f)

        print_question_separator(
            '5. What framework do most developers want to work in?')
        question5.run(f)
Exemple #2
0
def run():
    file_name = 'trades_march_to_april_2018.csv'
    get_csv_sheet(
        file_name,
        'https://raw.githubusercontent.com/PeterL93/PythonProject/master/trades_march_to_april_2018.csv'
    )
    with open(file_name, encoding='utf-8') as f:
        print_question_separator(
            '1. What is the highest size of a transaction between March and April 2018 (BTC)'
        )
        question1.run(f)
        print_question_separator(
            '2. What is the average number of transactions per hour')
        question2.run(f)
        print_question_separator(
            '3. What is the most favourite; selling or buying?')
        question3.run(f)
        print_question_separator(
            '4. Average sale and buy price per day for the most bought currency'
        )
        question4.run(f)
        print_question_separator('5. Illustrated with a graph')
        question5.run(f)
Exemple #3
0
def run():
    csv_sheet_name = 'data.csv'
    url = 'https://raw.githubusercontent.com/INFINITE-KH/Python-Dataset/master/complete.csv'
    download_csv_sheet(csv_sheet_name, url)
    with open(csv_sheet_name, encoding='utf-8') as f:
        print_question_separator(
            '1. Richest and poorest teams by cumulative player worth')
        question1.run(f)

        print_question_separator('2. Nationality with most players')
        question2.run(f)

        print_question_separator(
            '3. Difference between worth and release clause of top 10 valuable players'
        )
        question3.run(f)

        print_question_separator(
            '4. Frequency of age, height and weight for all players')
        question4.run(f)

        print_question_separator(
            '5. Average difference between value and wage of players')
        question5.run(f)
Exemple #4
0
import question1 as question1
import question2 as question2
import question3 as question3

if __name__ == '__main__':
    question1.run()
    print("Queston 1 --- DONE!")
    path = "XML_Outputs"
    question2.run(path, "charlotte_top10.csv", "month")
    print("Queston 2 --- DONE!")
    question3.run(path)
    print("Queston 3 --- DONE!")
from file_handler import download_csv_sheet
import question1, question2, question3, question4, question5


def print_question_separator(question_number):
    print("\nQuestion " + question_number, end="\n" + 100 * "-" + "\n")


csv_sheet_name = download_csv_sheet()
with open(csv_sheet_name) as f:
    print_question_separator("1")
    question1.run(f)

    print_question_separator("2")
    question2.run(f)

    print_question_separator("3")
    question3.run(f)

    print_question_separator("4")
    question4.run(f)

    print_question_separator("5")
    question5.run(f)

    # put everything that is needed to run a question into it's own run function and call it here with the question separator
    # viz question num 3