Pandas Coding practice: Is it better to build functions returning a DataFrame or Series?
This is a pretty fundamental question (and apols if already asked) but it would be great to hear views on this. I am leaning towards Series as it appears a more fundamental building block (i.e. index into df receives series), but there are some limits on the functionality that can be applied to Series. Equally, the fundamental argument could be taken one step further to numpy arrays where I begin to lose development speed.