deprecation-warning

The seaborn styles shipped by Matplotlib are deprecated since 3.6

The seaborn styles shipped by Matplotlib are deprecated since 3.6 Question: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as ‘seaborn-v0_8-<style>’. Alternatively, directly use the seaborn API instead. I have tried this: # use seaborn style plt.style.use("seaborn") …

Total answers: 2

Python Selenium warning "DeprecationWarning: find_element_by_* commands are deprecated"

Python Selenium warning "DeprecationWarning: find_element_by_* commands are deprecated" Question: I have multiple elements with the same class_name (table-number). I am trying to find specific ones based on their sequence. In this case [1], the first one that appears in the DOM. Here is working code: my_table = driver.find_element_by_xpath("(//span[@class=’table-number’])[1]").text However, I am getting the following error: …

Total answers: 2

Preprocessing in scikit learn – single sample – Depreciation warning

Preprocessing in scikit learn – single sample – Depreciation warning Question: On a fresh installation of Anaconda under Ubuntu… I am preprocessing my data in various ways prior to a classification task using Scikit-Learn. from sklearn import preprocessing scaler = preprocessing.MinMaxScaler().fit(train) train = scaler.transform(train) test = scaler.transform(test) This all works fine but if I have …

Total answers: 8

Django 1.9 deprecation warnings app_label

Django 1.9 deprecation warnings app_label Question: I’ve just updated to Django v1.8, and testing my local setup before updating my project and I’ve had a deprecation warning that I’ve never seen before, nor does it make any sense to me. I may be just overlooking something or misunderstanding the documentation. /Users/neilhickman/Sites/guild/ankylosguild/apps/raiding/models.py:6: RemovedInDjango19Warning: Model class ankylosguild.apps.raiding.models.Difficulty …

Total answers: 13

Python/matplotlib : getting rid of matplotlib.mpl warning

Python/matplotlib : getting rid of matplotlib.mpl warning Question: I am using matplotlib using python 3.4. When I start my program, I have the following warning message: C:Python34-32bitslibsite-packagesmatplotlibcbook.py:123: MatplotlibDeprecationWarning: The matplotlib.mpl module was deprecated in version 1.3. Use import matplotlib as mpl instead. warnings.warn(message, mplDeprecation, stacklevel=1) As far as I know I do not use mpl, …

Total answers: 5

How to warn about class (name) deprecation

How to warn about class (name) deprecation Question: I have renamed a python class that is part of a library. I am willing to leave a possibility to use its previous name for some time but would like to warn user that it’s deprecated and will be removed in the future. I think that to …

Total answers: 7