23 lines
532 B
Python
23 lines
532 B
Python
# data.science.example.py
|
|
def do_report(data_source):
|
|
# fetch and prepare data
|
|
data = fetch_data(data_source)
|
|
parsed_data = parse_data(data)
|
|
filtered_data = filter_data(parsed_data)
|
|
polished_data = polish_data(filtered_data)
|
|
|
|
# run algorithms on data
|
|
final_data = analyse(polished_data)
|
|
|
|
# create and return report
|
|
report = Report(final_data)
|
|
return report
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
print(
|
|
"Please don't call the `do_report` function. "
|
|
"It's just and example."
|
|
)
|