File tree Expand file tree Collapse file tree 4 files changed +647
-3
lines changed Expand file tree Collapse file tree 4 files changed +647
-3
lines changed Original file line number Diff line number Diff line change 11# custom
2- * .csv
2+ responses_cleaned_mapped_to_publish .csv
33# survey_dashboard/hmc_layout/static/en_files/fonts/
44
55# Byte-compiled / optimized / DLL files
Original file line number Diff line number Diff line change 3636def get_data_path ():
3737 """Get the path to the data file relative to this module"""
3838 this_folder = Path (__file__ ).parent .parent
39- return this_folder / "data" / "responses_cleaned_mapped_to_publish .csv"
39+ return this_folder / "data" / "hmc_survey_2021_data .csv"
4040
4141DATAFILE_PATH = str (get_data_path ())
4242
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ class DataProcessor:
5050
5151 def __init__ (self ):
5252 """Initialize the data processor with survey data."""
53- self .survey_data = pd .read_csv (DATAFILE_PATH )
53+ # Read CSV, skipping comment lines that start with #
54+ self .survey_data = pd .read_csv (DATAFILE_PATH , comment = '#' )
5455 # Rename columns to human readable names
5556 self .survey_data .rename (columns = HCS_colnamesDict , inplace = True )
5657
You can’t perform that action at this time.
0 commit comments