Hi All,
Sorry for the poorly worded heading, I can't quite find the words to summarise what im trying to say.
So basically I have been given a table with thousands of rows, and I need to split one of the fields, moving the first part of the field into a string column, and the right half of the split to a numeric column.
Here is a Pivot table (grouped) #view of what I need to split:
Incandescent <SPAN class="number token">200</SPAN> <SPAN class="number token">250</SPAN>
Incandescent <SPAN class="number token">300</SPAN>
Incandescent <SPAN class="number token">500</SPAN>
Incandescent <SPAN class="number token">60</SPAN>
Incandescent <SPAN class="number token">75</SPAN>
Low Pressure Sodium <SPAN class="number token">135</SPAN>
Low Pressure Sodium <SPAN class="number token">150</SPAN>
Low Pressure Sodium <SPAN class="number token">310</SPAN>
Low Pressure Sodium <SPAN class="number token">55</SPAN>
Low Pressure Sodium <SPAN class="number token">90</SPAN> <SPAN class="number token">100</SPAN>
Mercury Vapour <SPAN class="number token">1000</SPAN>
Mercury Vapour <SPAN class="number token">125</SPAN>
Mercury Vapour <SPAN class="number token">175</SPAN>
Mercury Vapour <SPAN class="number token">250</SPAN>
Mercury Vapour <SPAN class="number token">400</SPAN>
Mercury Vapour <SPAN class="number token">50</SPAN>
Mercury Vapour <SPAN class="number token">500</SPAN>
Mercury Vapour <SPAN class="number token">700</SPAN>
Mercury Vapour <SPAN class="number token">80</SPAN>
Metal Hallide <SPAN class="punctuation token">(</SPAN>Reactor Control Gear<SPAN class="punctuation token">)</SPAN> <SPAN class="number token">1000</SPAN>
Metal Hallide <SPAN class="punctuation token">(</SPAN>Reactor Control Gear<SPAN class="punctuation token">)</SPAN> <SPAN class="number token">150</SPAN>
Metal Hallide <SPAN class="punctuation token">(</SPAN>Reactor Control Gear<SPAN class="punctuation token">)</SPAN> <SPAN class="number token">250</SPAN>
Metal Hallide <SPAN class="punctuation token">(</SPAN>Reactor Control Gear<SPAN class="punctuation token">)</SPAN> <SPAN class="number token">400</SPAN>
Metal Hallide <SPAN class="punctuation token">(</SPAN>Reactor Control Gear<SPAN class="punctuation token">)</SPAN> <SPAN class="number token">70</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
So with the first row as an example I would like to end up with a column called STRING with 'Incandescent' in it, and a second column called WATTS with '200 250'.
I am trying to use field calculator, I understand I will need to run it twice, once to calculate the STRING and once for WATTS.
Python is my preference, but in this instance im unsure where to start the split.
Cheers!
(Nathan Duncan any ideas?)