0

i have a dataframe which contains many rows and columns. I want to extract words from the one columns in separate columns .

existing Dataframe

|               title|          sale_price|      condition_id|

|"Lenovo ThinkPad ...|              599.00|        1500|
|ASUS ROG GL752VW-...|              999.99|        2000|
|Lenovo IdeaPad S1...|               71.00|        3000|
|Lenovo T520 i5 2....|              210.00|        2500|
|"Dell Inspiron 15...|              508.72|        1000|
|7 Apple Macbook P...|              446.00|        7000|
|Dell Latitude E64...|               41.00|        3000|

i want to split

**brand column**  :         **model**    :     **model_num** :      **other**


lenovo  :                   thinkpad  :       4500U  :          8GB RAM 256GB

dell          :             inspiron   :     GL752VW

hp:

dell       :                latitude:

is there any method to get my required data in pyspark datafram

Mohamed Ali JAMAOUI
  • 14,275
  • 14
  • 73
  • 117

0 Answers0