I have a DF similar to the below:
| Name | Text |
|---|---|
| Michael | 66l additional text |
| John | 55i additional text |
| Mary | 88l additional text |
What I want to do is anywhere "l" occurs in the first string of the "Text" column, then replace it with "P"
Current code
DF['Text'] = DF['Text'].replace({"l", "P", 1})
Desired Outcome
| Name | Text |
|---|---|
| Michael | 66P additional text |
| John | 55i additional text |
| Mary | 88P additional text |