Advertisement
EXTREMEXPLOIT

nananananana guapa <3

Oct 7th, 2020
1,216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. dt10 = dt9
  2.  
  3. def splitDeviceString(deviceString):
  4.     deviceCode, deviceNameModel = deviceString.split('_')
  5.     manufactureName = deviceNameModel[:deviceNameModel.find(' ')]
  6.     deviceModel = deviceNameModel.replace(manufactureName, '')
  7.     return [deviceCode, manufactureName, deviceModel]
  8.  
  9. splitedData = np.array(list(map(splitDeviceString, dt10['PURCHASED_DEVICE'])))
  10.  
  11. dt10[['PURCHASED_DEVICE_CODE', 'PURCHASED_DEVICE_MANUFACTURER', 'PURCHASED_DEVICE_MODEL']] = splitedData
  12.  
  13. dt10[['PURCHASED_DEVICE_CODE', 'PURCHASED_DEVICE_MANUFACTURER', 'PURCHASED_DEVICE_MODEL']]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement