I am trying to create a column that only returns a value when month = 06.
E.g the 'Hold' column below.
Date Permno Value Hold
2000-01 10026 Big, Growth
2000-02 10026 Small, Value
2000-03 10026 Neutral, Neutral
2000-04 10026 Big, Value
2000-05 10026 Big, Value
2000-06 10026 Big, Value Big, Value
2000-07 10026 Big, Value
2000-08 10026 Big, Value
2000-09 10026 Small, Value
2000-10 10026 Small, Neutral
2000-11 10026 Neutral, Neutral
2000-12 10026 Big, Growth
2001-01 10026 Small, Value
2001-02 10026 Neutral, Neutral
2001-03 10026 Big, Value
2001-04 10026 Big, Value
2001-05 10026 Small, Value
2001-06 10026 Small, Neutral Small, Neutral
2001-07 10026 Neutral, Neutral
2001-08 10026 Big, Growth
2001-09 10026 Small, Value
2001-10 10026 Neutral, Neutral
2001-11 10026 Big, Value
2001-12 10026 Small, Neutral
2000-01 10030 Neutral, Neutral
2000-02 10030 Small, Neutral
Do you know how I can do this? Additionally, the 'Hold' column should also be dependent on 'Permno', as I need to forward fill the values from the 'Hold' and want to avoid filling values from different Permnos into each other
Thank you!