app.py
def calc_start_temps(start):
    """Return a JSON API of the minimum temperature, the average temperature, and the max temperature...
    for all dates greater than and equal to the start date."""

    print("Calculate Start Temps. API request received.")
    
    # Create our session (link) from Python to the DB
    session = Session(engine)

    # Query will accept start date in the format '%Y-%m-%d' and return the minimum, average, and maximum temperatures
    # for all dates from that date.
    start_temps = session.query(func.min(Measurement.tobs), func.avg(Measurement.tobs), func.max(Measurement.tobs)).\
        filter(Measurement.date >= start).all()

    # Iterate through start temps to append all key/values to Start (Date) Calc Temp dictionary.
    # Append Start (Date) Calc Temp dictionary to list, then return jsonify.
    all_start_calc_temps = []
    for result in start_temps:
        start_calc_temp_dict = {}
        start_calc_temp_dict["min_temp."] = result[0]
        start_calc_temp_dict["avg_temp."] = result[1]
        start_calc_temp_dict["max_temp."] = result[2]
        all_start_calc_temps.append(start_calc_temp_dict)

    return jsonify(all_start_calc_temps)
Return a JSON API of the minimum temperature, the average temperature, and the max temperature...
    for all dates greater than and equal to the start date.
Return a JSON API of the minimum temperature, the average temperature, and the max temperature
for all dates greater than and equal to the start date.
Return a JSON API of the minimum temperature the average temperature and the max temperature for all dates greater than and equal to the start date .
def calc_start_temps(start):
    print("Calculate Start Temps. API request received.")
    session = Session(engine)
    start_temps = session.query(func.min(Measurement.tobs), func.avg(Measurement.tobs), func.max(Measurement.tobs)).\
        filter(Measurement.date >= start).all()
    all_start_calc_temps = []
    for result in start_temps:
        start_calc_temp_dict = {}
        start_calc_temp_dict["min_temp."] = result[0]
        start_calc_temp_dict["avg_temp."] = result[1]
        start_calc_temp_dict["max_temp."] = result[2]
        all_start_calc_temps.append(start_calc_temp_dict)
    return jsonify(all_start_calc_temps)
def calc_start_temps ( start ) : print ( "Calculate Start Temps. API request received." ) session = Session ( engine ) start_temps = session . query ( func . min ( Measurement . tobs ) , func . avg ( Measurement . tobs ) , func . max ( Measurement . tobs ) ) . filter ( Measurement . date >= start ) . all ( ) all_start_calc_temps = [ ] for result in start_temps : start_calc_temp_dict = { } start_calc_temp_dict [ "min_temp." ] = result [ 0 ] start_calc_temp_dict [ "avg_temp." ] = result [ 1 ] start_calc_temp_dict [ "max_temp." ] = result [ 2 ] all_start_calc_temps . append ( start_calc_temp_dict ) return jsonify ( all_start_calc_temps )
Return a JSON API of the minimum temperature, the average temperature, and the max temperature...
for all dates greater than and equal to the start date.
Return a JSON API of the minimum temperature the average temperature and the max temperature ... for all dates greater than and equal to the start date .
"""Return a JSON API of the minimum temperature, the average temperature, and the max temperature...
    for all dates greater than and equal to the start date.""" # Create our session (link) from Python to the DB # Query will accept start date in the format '%Y-%m-%d' and return the minimum, average, and maximum temperatures # for all dates from that date. # Iterate through start temps to append all key/values to Start (Date) Calc Temp dictionary. # Append Start (Date) Calc Temp dictionary to list, then return jsonify.
start