Commit 0ae78e1e authored by Jinhuang (Jin) Zhou's avatar Jinhuang (Jin) Zhou
Browse files

bad import

parent b214980b
No related merge requests found
Showing with 2 additions and 3 deletions
+2 -3
......@@ -20,6 +20,7 @@ def extract_and_convert(relative_filepath:str)-> list[dict[str, Any]]:
# TODO 0: Fix the bad representation
...
# Provided
def write_to_csv(pend_list):
"""
......@@ -32,6 +33,7 @@ def write_to_csv(pend_list):
df = pd.DataFrame.from_dict(pend_list)
df.to_csv(NC_FP, index=False)
# Provided
if __name__ == "__main__":
print(pd.read_csv(NC_FP))
......
......@@ -7,9 +7,6 @@ from support.pendulum import make_objects_of_pendulum
from support.constants import *
from src.pds_helper import extract_and_convert
import pandas as pd
# TODO 1: write the following 5 functions using relevant helper functions from 'pds_helper'.
def uniform_mass_newton_cradle(relative_filepath: str, mass: float):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment