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

just a trivial one-line fix