Top "Unique" questions

Refers to an element that is distinctly different from any other element in a collection.

What is the meaning of the error cannot handle a non-unique multi index in groupby clause?

I have a dataframe which have three level of index, and I wish to calculate how much a value deviates …

python pandas unique pandas-groupby multi-index
Laravel Soft Delete Unique column name

Suppose I have category table and I have used soft delete on it. Now first time I have added one …

php laravel unique soft-delete
Laravel 5 Unique form validation ignore id / slug

These are my rules in my class: class AppointmentsController extends Controller { protected $rules = [ 'appointment' => ['required', 'min:5'], 'slug' => […

php laravel-5 unique rules slug
CakePHP 2.1 - Custom Validation Rule - Check for Unique Field Value Combination

I have a couple of columns (ip, provider_id) for which I want combinations of values to always be unique. …

validation cakephp unique cakephp-2.0 customvalidator
How to get distinct array elements with postgres?

I have an array with duplicate values in postgres. For example: SELECT cardinality(string_to_array('1,2,3,4,4', ',')::…

arrays postgresql unique postgresql-9.4
Laravel 4: Unique Validation for Multiple Columns

I know this question has been asked earlier but i did not get relevant answer. I want to know that …

validation laravel-4 unique multiple-columns
What is the difference between UNIQUE, UNIQUE KEY and CONSTRAINT 'name' UNIQUE?

I have a basic users table I want to create in MySQL. I do not want duplicate emails or duplicate …

mysql database-design unique create-table unique-constraint
Ansible: restrict list to unique elements

I'm writing a playbook to manage users on our servers defined in users.yml: --- users: - login: ab full_…

ansible unique user-management
Get unique value of one attribute from array of associative arrays

I have an array like this: $a = array( 0 => array('type' => 'bar', 'image' => 'a.jpg'), 1 => array('type' =&…

php arrays foreach unique unique-values
Math question regarding Python's uuid4

I'm not great with statistical mathematics, etc. I've been wondering, if I use the following: import uuid unique_str = str(…

math random unique uuid unique-key