def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(Plot, self).get_context_data(**kwargs) context['plot'] = DisplayData.GetSkillsFromJobRegion( "data analyst", "Boston, MA") print(context['plot']) return context
def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(PlotGlassDoor, self).get_context_data(**kwargs) context['plot'] = DisplayData.GlassdoorPlot1(kwargs['genstat']) return context
def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(IndeedPlot, self).get_context_data(**kwargs) context['plot'] = DisplayData.GetSkillsFromJobRegionDateCount( kwargs['job'], kwargs['city']) return context
def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(IndeedComparePlot, self).get_context_data(**kwargs) context['plot'] = DisplayData.CompareJobsPlot(kwargs['job1'], kwargs['job2']) return context
for row in reader: if(first): first = False else: if(row[0] == "40"): states[row[1]] = row[6] if(row[0] == "50"): state = states[row[1]] state_code = row[1] county_code = row[2] county = row[6][:row[6].rfind(' ')] Geography.objects.get_or_create(Country = country, CountryCode = country_code, Area = state, AreaCode = state_code, SubArea = county, SubAreaCode = county_code) if __name__ == "__main__": #populateMany() #populateCity() #populateGeography() #printShapeFile() #runPopulate("data analyst", "Suffolk County, MA") DisplayData.GetSkillsFromJobRegionDateCount("data scientist", "Boston, Massachusetts")