如何检查列表的所有项目是否在数据集的每一行中?

时间:2019-07-20 12:34:08

标签: python pandas data-science-experience

我是数据科学和python的新手,我有一个项目来处理包含恶意软件API调用的数据集,而该数据集只有一列。 我想查找数据集的任何行是否包含另一个列表中的所有项目。

数据集的第一行是:

data set = ["Worm.Win32.Zwr.c","009a83236c600fd7ac034973f064284cec62f86631fe96e900cb664f86061431","GetSystemDirectoryA","IsDBCSLeadByte","LocalAlloc","CreateSemaphoreW","CreateSemaphoreA","GlobalAddAtomW","lstrcpynW","LoadLibraryExW","SearchPathW","CreateFileW","CreateFileMappingW","MapViewOfFileEx","GetSystemMetrics","RegisterClipboardFormatW","SystemParametersInfoW","GetDC","GetDeviceCaps","ReleaseDC","LocalAlloc","GetSysColor","GetSysColorBrush","GetStockObject","GetSystemMetrics","LoadCursorW","RegisterClassW","RegisterClassExW","LoadLibraryExW","LoadLibraryW","GetCommandLineA","GetStartupInfoA","LockResource","GetModuleFileNameA","IsBadWritePtr","RegisterClipboardFormatW","SystemParametersInfoW","GetSystemMetrics","LocalAlloc","GetSysColor","GetSysColorBrush","GetStockObject","LoadLibraryW","LoadLibraryExW","LoadCursorW","RegisterClassW","GetKeyboardType","GetCommandLineA","GetStartupInfoA","GetVersion","GetModuleFileNameA","lstrcpynA","GetThreadLocale","GetLocaleInfoW","GetLocaleInfoA","lstrlenA","LoadLibraryExW","SearchPathW","FindResourceExW","LoadResource","LoadStringA","LocalAlloc","VirtualAllocEx","GetThreadLocale","GetLocaleInfoA","GetLocaleInfoW","EnumCalendarInfoA","CreateEventA","LoadLibraryExW","lstrcpyA","CompareStringA","lstrcmpA","WaitForSingleObjectEx","WaitForSingleObject","GetProcessVersion","GlobalAlloc","DuplicateHandle","WSAStartup","LoadLibraryExW","CreateSemaphoreA","CreateSemaphoreW","ReleaseSemaphore","WaitForSingleObject","WaitForSingleObjectEx","GetWindowsDirectoryW","LocalAlloc","FindFirstFileExW","FindFirstFileA","GetModuleFileNameA","CreateFileW","WriteFile","CopyFileExW","CopyFileA","OpenEventW","WaitForSingleObject","WaitForSingleObjectEx","LoadLibraryW","LoadLibraryExW","DuplicateHandle","DeviceIoControl","SwitchToThread","WSACleanup","FreeLibrary","VirtualQueryEx","ResetEvent","VirtualFreeEx","UnregisterClassW"]

我想知道所有项目是否在数据集的每一行中的另一个列表:

stealthiness = ['FindFirstFileA', 'FindNextFileA', 'GetProcAddress', 'LoadLibraryA', 'OpenProcess', 'Sleep']

0 个答案:

没有答案