after scatterplotting two columns from a dataframe, there is clearly an outlier given by the last row of the dataframe, I try to print it but this code always prints 'no outlier'. It seems pretty simple but somehow I can't understand why this code doesn't detect this outlier.
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
data=[[ 10,10],
[ 15,15],
[ 14,14]
,[16,16],
[19,19],
[17,17]
,[6,6],
[5,5],
[20,20]
,[22,22],
[21,21],
[18,45 ]]
df = pd.DataFrame(data, columns=['x','y'])
plt.scatter(df['x'],df['y'])
plt.show()
if 17<df['x'].any()<19 and 42<df['y'].any()<48:
print(df['x'], df['y'])
else:
print('no outliers')