stats: replace a print() with a warning
Merge pull request #2563 from bburlo/print_warn

MAINT: stats: replace a print() with a warning