Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Intersection of three arrays

arr1 = [1,2,3,4,5]
arr2 = [1,2,3,4,5,6,7]
arr3 = [1,2]
arr1AndArr2 = list(filter(lambda a: a in arr1, arr2))
res = list(filter(lambda a : a in arr1AndArr2, arr3))
print(res)
Comment

PREVIOUS NEXT
Code Example
Python :: fillna spark dataframe 
Python :: catch exception python unittest 
Python :: how to get the number of rows and columns in a numpy array 
Python :: exit a pygame program 
Python :: SUMOFPROD1 
Python :: Regular Expression to Stop at First Match 
Python :: Python program to count all characters in a sentence 
Python :: python delete list elements 
Python :: bubble sort in python 
Python :: Python Requests Library Delete Method 
Python :: beautifulsoup find text inside tag 
Python :: pd.concat has nan 
Python :: request post python with api key integration 
Python :: django check if get parameter exists 
Python :: call matlab function from python 
Python :: listing of django model types 
Python :: length of list without len function 
Python :: # extract images from pdf file 
Python :: Static Language Programmers 
Python :: python length 
Python :: python catch any exception 
Python :: Python recursively find files with specific ext 
Python :: how to calculate log 10 in python 
Python :: python server 
Python :: guardar plot python 
Python :: get schema of json pyspark 
Python :: tkinter canvas text 
Python :: python *args and **kwargs 
Python :: python flatten one liner 
Python :: how to remove new line in python 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =