You can update Python Packages using pip with the following code. I highly recommend you get the “Python Crash Course Book” to learn Python.
pip install --upgrade PackageName
Example: Update Pandas Python Package using pip
pip install --upgrade pandas