We study a joint inventory and pricing problem under quality and demand uncertainty, where products are first classified into different categories and the resulting outcomes inform subsequent inventory and pricing decisions. However, noise, incompleteness, and distributional shifts in data may reduce classification reliability and propagate errors into downstream operational decisions. To address these challenges, we develop a data-driven distributionally robust decision-making framework that links robust quality classification with operational optimization. We employ a distributionally robust machine learning approach — and its cost-sensitive extension — to classify product quality and estimate misclassification probabilities and the proportion of defective items. These outputs are then integrated into a joint inventory and pricing problem, where demand uncertainty is captured through a Wasserstein distributionally robust formulation. The resulting decisions remain tractable and yield closed-form expressions. We further extend the framework to account for uncertainty in its classification-derived parameters, allowing the downstream inventory and pricing decisions to remain robust to estimation errors in these inputs. Our analysis provides some key managerial insight: expected profit decreases monotonically with misclassification probabilities, indicating that firms should explicitly consider the operational impact of classification errors during the quality classification stage rather than focusing exclusively on maximizing overall classification accuracy. Extensive numerical experiments demonstrate that the proposed framework significantly enhances both classification robustness and profit performance relative to conventional methods, particularly under data perturbations.