I have a Spark dataframe column with trading pairs that I need to use to create a new column with the name of the coin populated in it.
The first column "bot" contains "Polkadot/USD", I need a new column called "coin" that contains only the substring "Polkadot" of the bot column. Same for all other rows. Basically the new column needs to have the substring "/USD" removed.
How would the code look like to accomplish this. I'm a crypto trader not a coder, so the more coding detail in the answer the better. Thank you.
Note: The notebook is a Python Notebook

split()spark sql function?