i dont think a trough/windowbox would be suitable you need a deeper pot but if ones male and ones female sure you could get rid of the male
as for pots the deeper the better i say
other thing is if you have a male and female you could sacrafice this crop for a seed crop so you got plenty...