You can learn Python for data science by reading books on this matter. For example, Python Data Science Handbook by Jake VanderPlas is a useful source that you can read to learn more about this issue. Also, there are many online sources to learn Python.