I'm practicing how to perform join operation on pydatatable's dataframes.
First DT is created as follows,
DT_1=dt.Frame({"title": np.array(['stat','math','stat','math','esp']),
"score": np.array([23,43,21,50,16])})
Second DT is created as follows,
DT_2=dt.Frame({"title": np.array(['stat','esp','math','stat']),
"price": np.array([350,450,530,430])})
I'm setting a key on DT_2.key = "title"
, as it has duplicated titles it's giving a key value error: ValueError: Cannot set a key: the values are not unique.
I would like to know that uniqueness is enforced on a key or not in python datatable? Whereas in R datatable uniqueness is not enforced and duplicate key values are allowed.
Is there any reference documentation for it?