# Operator Functions Set-2 :

This blog is in continuation with the previous blog on operator functions in Python for Data Science.

1. Setitem (ob,pos,val) – We use this function for assigning a value at a particular position in the container, so, ob[pos] = val denotes setitem function.
2. delitem(ob,pos) – This is a function use for deleting value at a particular position in the container. so, del ob[pos] denotes the delitem function.
3. getitem(ob,pos) – We use this function for accessing the value at a particular position in the container. so, ob[pos] denotes getitem. 1. setitem(ob, slice(a,b), vals) – This is a function use to set the values in a particular range in the container. So, obj[a:b] = vals denotes it.
2. delitem(ob, slice(a,b)) – This is a function use for deleting the values from a particular range in a container. So, del obj[a:b] denotes it.
3. getitem(ob, slice(a,b)) – This is a function use for accessing the values in a particular range in a container. So, obj[a:b] denotes it.  1. concat(obj1,obj2) – This function is use for combining two containers. In python, obj1 + obj2 denotes it.
2. contains(obj1,obj2) – This is a function use for checking whether obj2 is present in obj1 or not. obj2 in obj1 denotes it. 1. and_(a,b) – This is a function use for performing ‘bitwise and’ operation of the mentione argument. a & b denotes it.
2. or_(a,b) – This is a function use to perform ‘bitwise or’ operation of the mentione arguments. a | b denotes it.
3. xor(a,b) – This is a function use for performing ‘bitwise xor’ operation of the mentione arguments. a^b denotes it.
4. invert(a) – This is a function use for performing ‘bitwise inversion’ of the mentione arguments. ~a denotes it. If you want to learn more about operator functions in Python for Data Science, you can check this and this.

This site uses Akismet to reduce spam. Learn how your comment data is processed.