79809322

Date: 2025-11-04 19:38:26
Score: 1
Natty:
Report link

i would give a try to this code:

res = (df.loc[df["A"]==2].index-1).isin(df.loc[df["A"]==1].index).all()

then print your dataframe bases on boolean value in res.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: strawdog