CLN/DOC: add axis parameter doc for filter method

removing some unused imports and added `axis` parameter doc for `filter` method