Notice
Recent Posts
Recent Comments
Link
아미(아름다운미소)
문자열찿기 본문
df['a'] = df['a'].str.split('-to-SCP-', expand=True)[1].fillna(df['a'].str.split('--', expand=True)[0])
df['a'] = df['a'].str.split('-to-SAP-', expand=True).get(1).combine_first(df['a'].str.split('--', expand=True).get(0))'랭귀지 > pandas' 카테고리의 다른 글
| df1의 a컬럼과 df2의 b컬럼을 비교해서 없는값찿기 (0) | 2024.09.05 |
|---|---|
| df a컬럼이 null인경우 b컬럼을 groupby해서 b그룹의 c컬럼에서 알파벳이 가장 빠른값을 a컬험에 채워넣기 (0) | 2024.09.04 |
| 마지막 컬럼이동 (0) | 2024.09.02 |
| df 에서 a컬럼으로 distinct 했을때 b컬럼이 true인 c값을 copy해서 해당그룹의 b값을모두 c값으로 바꿔준다 (0) | 2024.09.02 |
| pandas 주차 (0) | 2024.08.30 |
Comments