From physics to data science