human
I am working on the file "11/homework-11-schuetz.ipynb".
The first task is:
Manhattan in Precincts Entirely Below 96th St Money
Can you write Python program for it?
assistant
#Here is the Python program you requested.

# total_fees = 0
# for fee in df_merged[df_merged['Below 96th St?'] == True]['Fee for This Precinct']:
#     try:
#         total_fees += int(fee)
#     except:
#         pass
# total_fees

# Midtown North is 18
# Midtwon South is 22
# part of 24 is also below 96, but I'm not counting it
# precincts_below_96 = ["22", "20", "19", "18", "17", "13", "10", "9", "7", "6", "5", "1"]

# # go through rows in precincts. If row is in precinct list, save row because we want to get the sum of what was charged for those rows.
# row_numbers = range(len(df_merged['Violation Precinct']))
# row_numbers_for_violations_occuring_below_96 = []

# for row_number in row_numbers:
#     precinct = df_merged['Violation Precinct'][row_number]
#     if precinct in precincts_below_96:
#         row_numbers_for_violations_occuring_below_96.append(row_number)

# # fines_occuring_below_96 = [df_merged['Manhattan\xa096th st and below Int'][row_number] for row_number in row_numbers_for_rows_occuring_below_96]

# def fines_occuring_below_96(row_number):
#     try:
#         return int(df_merged['Manhattan\xa096th st and below Int'][row_number])
#     except:
#         return None

# below_96_fee_sum = 0
# for row_number in row_numbers_for_violations_occuring_below_96:
#     fine = fines_occuring_below_96(row_number)
#     if pd.isnull(fine):
#         pass
#     else:
#         below_96_fee_sum += fine
# below_96_fee_sum