When I use the following:
import pandas as pd
data = pd.read_csv('C:/Users/Z/OneDrive/Python/Exploratory Data/Aramark/ARMK.csv')
x = data.iloc[:,2]
y = pd.unique(x)
y.to_csv('yah.csv')
I get the following error:
AttributeError: 'numpy.ndarray' object has no attribute 'to_csv'