Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dt10 = dt9
- def splitDeviceString(deviceString):
- deviceCode, deviceNameModel = deviceString.split('_')
- manufactureName = deviceNameModel[:deviceNameModel.find(' ')]
- deviceModel = deviceNameModel.replace(manufactureName, '')
- return [deviceCode, manufactureName, deviceModel]
- splitedData = np.array(list(map(splitDeviceString, dt10['PURCHASED_DEVICE'])))
- dt10[['PURCHASED_DEVICE_CODE', 'PURCHASED_DEVICE_MANUFACTURER', 'PURCHASED_DEVICE_MODEL']] = splitedData
- dt10[['PURCHASED_DEVICE_CODE', 'PURCHASED_DEVICE_MANUFACTURER', 'PURCHASED_DEVICE_MODEL']]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement