Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscojavierarceo committed Jan 14, 2024
1 parent 8470675 commit 2fb00a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyipums/clean_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def clean_variables(self):
self.df["Industry"] = map_codes(self.ddi_codebook, self.df, "IND1990")
self.df["Hispanic"] = map_codes(self.ddi_codebook, self.df, "HISPAN")
self.df["Language Spoken"] = map_codes(self.ddi_codebook, self.df, "LANGUAGE")
self.df["Labor Force"] = map_codes(self.ddi_codebook, self.df, "LABFORCE")
self.df["Speak English"] = map_codes(self.ddi_codebook, self.df, "SPEAKENG")

self.df["Hispanic or Not"] = np.where(
self.df["Hispanic"] != "Not Hispanic", "Hispanic", "Not Hispanic"
)
Expand Down

0 comments on commit 2fb00a5

Please sign in to comment.