Only importing arrange from numpy (& swapped it in for range), renamed some (internal) vars for PEP 8 compliance, simplified scanD to generate return code with comprehensions, simplified aprioriGen to sort fewer lists.
More PEP 8 lowercasing, purged 'if' from generateRules
Rewrote print statement, reorted code in calcConf
modified rulesFromConseq for PEP 8 style.