I'm trying to use pd.wide_to_long and I'm a little bit stumped on using the stubnames parameter:
https://pandas.pydata.org/docs/reference/api/pandas.wide_to_long.html
Expected behavior: the transformation of a wide format df to a long format.
Current behavior: returns an empty row df with no other changes. I believe it's because of an improper use of stubnames or the sep parameter.
Attempts:
stubnames = "0.outbreakMap."
stubnames = "0.outbreakMap"
stubnames = "outbreakMap"
stubnames = "outbreakMap."
Thank you.
Try to swap
i
andj
then specify the suffix (wildcard):