Skip to content

Commit

Permalink
add notebooks and data directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Landamore committed Nov 23, 2020
1 parent e91025e commit 055f8a4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ dist/
groupama/data/base_pno.*
.DS_Store
.idea/
data/*
!data/.keep
2 changes: 1 addition & 1 deletion 5-star/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def clean_data(data):
cols = [x for x in data.columns if x.find('vote') >= 0]
data.drop(cols, axis=1, inplace=True)
# Remove special characteres from columns
data.loc[:, 'civility'] = data['civility'].replace('\.', '', regex=True)
data.loc[:, 'civility'] = data['civility'].replace('\\.', '', regex=True)
# Calculate Age from day of birth
actual_year = datetime.datetime.now().year
data.loc[:, 'Year_Month'] = pd.to_datetime(data.birthdate)
Expand Down
Empty file added data/.keep
Empty file.
Empty file added notebooks/.keep
Empty file.

0 comments on commit 055f8a4

Please sign in to comment.