Это один из способов сделать это
fig, ax = plt.subplots()
df1.plot(y='duration',figsize=(8,5), ax=ax)
df1[df1["status"]=="Failed"].plot(marker='x', linestyle='None', color='r', legend=False, markersize=20, ax=ax)
Это другой способ сделать это
fig, ax = plt.subplots()
df1.plot(y='duration',figsize=(8,5), ax=ax)
xvals = np.where(df1["status"]=="Failed")[0]
ax.scatter(xvals, df1[df1["status"]=="Failed"]["duration"].values, marker='x', s=100, c='r')
plt.show()
