S

Shyam Dubey • 3.70K Points
Extraordinary

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: 2
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
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.

Be the first to start discuss.