Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 preprocessing problem
#1
Hi, I'm new in data science and python, I have a project to deal with a data set which contains malware API calls and the data set just has one column
I want to find if any rows of the data set contains a all items which are in other list:
the first row of the dataset is :
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"]


the other list that I want to know if all of it's items is in each row of the dataset:
stealthiness = ['FindFirstFileA', 'FindNextFileA', 'GetProcAddress', 'LoadLibraryA', 'OpenProcess', 'Sleep']
Quote
#2
use intersect to find like items in list
example:
common = list(set(a) & set(b))
scidam likes this post
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)