`distplot` is a deprecated function and will be removed in a future version. Please adapt your code to use either `displot` (a figure-level function with similar flexibility) or `histplot` (an axes-level function for histograms).
# change from displot to displot
# Code Sample:
feature2_ok = df.loc[df["target"] == 1]
feature2_ng = df.loc[df["target"] == 0]
fig, ax = plt.subplots(figsize=(20, 6))
sns.histplot(feature2_ok["feature_2"], color="orange", label="100% Equities", kde=True, linewidth=0)
sns.histplot(feature2_ng["feature_2"], label="100% Equities", kde=True, linewidth=0)
ax.set(xlim=(-100, 700),
xticks=[-100, -50, 0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700])
plt.legend(["Frist State", "Zero State"])
plt.title('Machine Performance Feature 2')
plt.ylabel('Frequency')
plt.grid()
plt.show()