I have noticed some inconsistent behaviour in how axes are defined (as discussed in in this forum: What does axis in pandas mean?), and I just would like to make sure I understand correctly that:
For
dropna
axis=0
means: the algorithm goes through each row and checks for na's, if there are any/all it deletes that row.For
any
axis=0
means: the algorithm goes through each column and checks for condition True, if there are any/all it deletes that column
So the definition of row and column are switched (although the pandas doc explains 'any' axis as {index (0), columns (1)}.
Is this correct?