Currently what I do is:
toConcat = []
for cname in get_columns:
toConcat += [df[cname]]
res = pd.concat(toConcat, axis=0, ignore_index=True)
res = res.dropna()
While this works, I wonder if there are other, faster, built-in ways of dealing with this case? The reason I do this is because in different datasets I have different numbers of columns with related info that I want to merge into one column/row so that I can do frequency/mean calculations on them.
Again, thanks for all the support!