Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscojavierarceo committed Dec 10, 2023
1 parent 98ab8df commit 306cfd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyipums/clean_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def clean_variables(self):
self.df["Nativity"] = map_codes(self.ddi_codebook, self.df, "NATIVITY")
self.df["Class_of_worker"] = map_codes(self.ddi_codebook, self.df, "CLASSWKR")
self.df["Hispanic"] = map_codes(self.ddi_codebook, self.df, "HISPAN")
self.df["Labor Force"] = map_codes(self.ddi_codebook, self.df, "LABFORCE")
self.df["Hispanic or Not"] = np.where(
self.df["Hispanic"] != "Not Hispanic", "Hispanic", "Not Hispanic"
)
Expand Down

0 comments on commit 306cfd4

Please sign in to comment.