Data science is the broad field of extracting meaning from data, while machine learning is a specific subfield focused on algorithms that learn from data to make predictions. Machine learning uses the processed data from data science to build models and make predictions, while data science encompasses the entire process, including data collection, cleaning, and analysis, as well as visualization and statistical methods.