how to unimport libraries in python code example
Example 1: unimport library python
# Import your library
import time
# Remove your library (change as needed)
# You'll lose access to it
# Python will still keep a copy around in the cache though
del time
# If you want to reload it (> Python 3.4):
import importlib, time
importlib.reload(time)
Example 2: import library python
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt