S

Sikhar Chaudhary • 5.88K Points
Tutor III

Q. Which method is used to shift the data in a Series or DataFrame by a certain number of periods?

  • (A) shift()
  • (B) move()
  • (C) lag()
  • (D) offset()
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category Pandas

Explanation by: Sikhar Chaudhary
The shift() method shifts the data by the specified number of periods, which is useful for time series analysis.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics