EN VI
Posts (0)
Questions (1)
2024-03-13 09:30:05
Try: df = ( df.set_index("Store") .stack() .rename("Sales") .rename_axis(["Store", "Qrt"]) .reset_index() ) print(df) Prints: Store Qrt Sales 0 Store 1 FQ2 2022...
Tags: python dataframe transpose

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login