Skip to content

Commit

Permalink
Update src/rred_reports/redcap/main.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stef Piatek <[email protected]>
  • Loading branch information
katiebuntic and stefpiatek authored Aug 30, 2023
1 parent 261ff98 commit 61314c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rred_reports/redcap/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ def read_single_redcap_year(self, redcap_fields: ExtractInput) -> pd.DataFrame:
processed_wide = self.preprocess_wide_data(raw_data, labelled_data)
long = self.wide_to_long(processed_wide, redcap_fields.survey_period)
long_with_names = self._add_school_name_column(long)
masterfile_and_debug_columns = [*masterfile_columns()]
return long_with_names[masterfile_and_debug_columns].copy()
return long_with_names[masterfile_columns()].copy()

@classmethod
def preprocess_wide_data(cls, raw_data: pd.DataFrame, labelled_data: pd.DataFrame) -> pd.DataFrame:
Expand Down

0 comments on commit 61314c4

Please sign in to comment.