79190555

Date: 2024-11-14 22:07:04
Score: 1.5
Natty:
Report link

try updating your condition to compare with the integer 1 instead

df["season"] = np.where(df["Month"] == 1, df["Year"] - 1, df["Year"])
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Khalid BOUSSAROUAL