Como Avoind DeprecationWarning em Python

import warnings

warnings.filterwarnings("ignore", category=DeprecationWarning)
Jack Roy