'How do I extract numbers from a dataframe column which follows a recurring pattern using pandas?
I am working on a dataframe which has a column that follows a pattern as shown in the image as Column Marks
I need to create two separate columns each containing ENG and HIN marks separately.
I am aware I need to use .extract and enter the pattern to extract the marks but I can't seem to get it to work.
I am using pandas.
Any help will be appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
