I am running the following code and getting this issue -
"/usr/local/lib/python2.7/dist-packages/seaborn/timeseries.py:183: UserWarning: The tsplot function is deprecated and will be removed or replaced (in a substantially altered version) in a future release. warnings.warn(msg, UserWarning) ".
Does anybody know how to fix this issue?
Code-
import numpy as np
import tensorflow as tf
import seaborn as sns
import pandas as pd
SEQ_LEN = 10
def create_time_series():
freq = (np.random.random()*0.5) + 0.1 # 0.1 to 0.6
ampl = np.random.random() + 0.5 # 0.5 to 1.5
x = np.sin(np.arange(0,SEQ_LEN) * freq) * ampl
return x
for i in xrange(0, 5):
sns.tsplot( create_time_series() ); # 5 series
tsplot: "This function is intended to be used with data where observations are nested within sampling units that were measured at multiple timepoints." So I guess it is pretty overkill here anyways. Why not use a normal line plot, i.e.plt.plot()(wherepltismatplotlib.pyplot)? - ImportanceOfBeingErnest