The easiest way to do this is to create a dataframe of the subset of values you are interested in.
Say you have a dataframe df with columns 'Ice_cream_sales','Temperature'
import pandas as pd
import matplotlib.pyplot as plt
# Here we subset your dataframe where the temperature is 90, which will give you a
# boolean array for your dataframe.
temp_90 = df['Temperature'] == 90
# Apply your boolean against your dataframe to grab the correct rows:
df2 = df[temp_90]
# Now plot your scatter plot
plt.scatter(x=df2['ice_cream_sales'] y=df2['Temperature'])
plt.show()
I'm not sure why you would want to plot a scatter plot where sales are = $5 and temperature = 90. That would give you exactly one data point.
Instead you can subset using an inequality:
high_temp = df['Temperature'] >= 90
Also be careful that you do not apply subsets on both of your variables, otherwise you would be falsifying whatever relationship you are attempting to show with your scatter plot.