コード例 #1
0
def category_wise_crime(dataframe, crimes_obj):
	'''Handles the functionalities of crimes by different categories'''

	GUI3.start_user_interface(dataframe)
	category, specific_choice = GUI3.get_choices()
	crimes_per_student_by_category = handlers.average_crimes_per_student_by_category(dataframe, category, crimes_obj, overall_average = True)

	pltparam = plotting.pltParam()
	answers_obj = plots.Answers(crimes_obj, None, pltparam, None, None, None)

	bar_chart = answers_obj.simpleBarChart(crimes_per_student_by_category, specific_choice)

	return bar_chart, specific_choice
コード例 #2
0
def category_wise_crime(dataframe, crimes_obj):
    '''Handles the functionalities of crimes by different categories'''

    GUI3.start_user_interface(dataframe)
    category, specific_choice = GUI3.get_choices()
    crimes_per_student_by_category = handlers.average_crimes_per_student_by_category(
        dataframe, category, crimes_obj, overall_average=True)

    pltparam = plotting.pltParam()
    answers_obj = plots.Answers(crimes_obj, None, pltparam, None, None, None)

    bar_chart = answers_obj.simpleBarChart(crimes_per_student_by_category,
                                           specific_choice)

    return bar_chart, specific_choice
コード例 #3
0
def category_wise_crime(dataframe):
    '''Handles the functionalities of crimes by different categories'''

    GUI3.start_user_interface(dataframe)
    print GUI3.get_choices()
コード例 #4
0
def category_wise_crime(dataframe):
	'''Handles the functionalities of crimes by different categories'''

	GUI3.start_user_interface(dataframe)
	print GUI3.get_choices()