Display one more property computed from data

Anudha Mittal
1 min readSep 29, 2024
  1. read in data = y
  2. data sliced = y_crop
  3. intiate a list to store the property, characteristic, or feature: feature =[]
  4. inside a for loop, calculate characteristic, f, for each slice of data
  5. append the list that stores this feature: feature.append(f)
  6. add list as a column to the dataframe that stores all features: df[‘{feature}’] = feature
  7. save dataframe as csv file

An error occurred because of file read in / read out.

File extension ‘.csv’ is used to decide which files are read in from a dir. Initially, the directory contained .csv files that are to be processed.

After processing, the function writes .csv files.

The second set of .csv files doesn’t need to be read.

This was remedied by modifying the output file names with a step id.

The decision to read in a file is based on step id in the filename and file extension.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response