Skip to content

Update survey_years.py #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion survey_years.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
def generate_year_files():
# Read in the "data/surveys.csv" as a DataFrame
surveys_df = pd.DataFrame([[0,0,0,0],[0,0,0,0]]) # Correct this line to import appropriate file
surveys_head = surveys_df.head(10)

# Use the for loop to process each unique year
for year in pd.unique(surveys_df[0]): # Correct this line to selct unique years
Expand All @@ -29,4 +30,4 @@ def display_year_file_names():
# use the for loop to loop through the list created by os.listdir('data/yearly_files')
for file_name in os.listdir('data/yearly_files'):
# print each file name
print(file_name)
print(file_name)