Method to check the dimensions of supplied data. Plotters need data to be 1D and often data is passed in as 2D
Args:
y: (numpy array or pd.DataFrame), array or dataframe of data used for plotting
Returns:
y: (pd.Series), series that is now 1D