Skip to content

Commit

Permalink
remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fanxu30 committed Dec 14, 2024
1 parent fce69c1 commit a014e58
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 18 deletions.
Binary file added NBA_pts_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __pycache__/lib.cpython-312.pyc
Binary file not shown.
6 changes: 1 addition & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ uvicorn == 0.18.3
#math
#unpinned due to package conflicts
pandas
matplotlib>=3.5, <3.10
ydata-profiling

#processing
markdownify==0.13.1
matplotlib>=3.5, <3.10
13 changes: 0 additions & 13 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from lib import load_data
import matplotlib.pyplot as plt
import markdownify as md
from ydata_profiling import ProfileReport

data = "NBA_24_stats.csv"

Expand All @@ -29,17 +27,6 @@ def points_plot(dataset):
plt.show()


def report(dataset):
"generates report and converts to pdf"
df = load_data(dataset)
profile = ProfileReport(df, title="NBA Statistics")
export = profile.to_html()
markdown = md.markdownify(export)
with open("NBA_report.md", "w", encoding="utf-8") as f_write:
f_write.write(markdown)


if __name__ == "__main__":
summary(data)
points_plot(data)
report(data)

0 comments on commit a014e58

Please sign in to comment.