Skip to content

Commit 8e5ae3f

Browse files
authored
Update cheatsheet.md
1 parent bbc7f4c commit 8e5ae3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chicago Job Market Dataset - Data Cleaning Snippets/cheatsheet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ df.drop(['column 1', 'column 1'], inplace=True)
4949
df.rename(columns={'old_name1': 'new_name1', 'old_name2': 'new_name2'}, inplace=True)
5050
```
5151

52-
5352
## Step 5: Handle Missing Data
5453

5554
```python
@@ -131,6 +130,7 @@ df['text_column'] = df['text_column'].str.replace('[^a-zA-Z0-9]', ' ‘)
131130
# Create new columns from existing ones
132131
df['new_column'] = df['existing_column'].apply(lambda x: function(x))
133132
```
133+
134134
## Step 11: Combining DataFrames (if applicable)
135135
### Merging Dataframes
136136
```python

0 commit comments

Comments
 (0)