Python、数据科学与软件工程

Python 中的软件工程原理

Adam Spannbauer

Machine Learning Engineer at Eastman

数据科学维恩图

Python 中的软件工程原理

数据科学维恩图

Python 中的软件工程原理

数据科学维恩图

Python 中的软件工程原理

数据科学维恩图

Python 中的软件工程原理

数据科学维恩图

Python 中的软件工程原理

软件工程概念

  • 模块化
  • 文档
  • 测试
  • 版本控制与 Git
Python 中的软件工程原理

模块化的益处

  • 提高可读性
  • 提高可维护性
  • 问题只解一次

模块化拼图

Python 中的软件工程原理

Python 中的模块化

# Import the pandas PACKAGE
import pandas as pd

# Create some example data
data = {'x': [1, 2, 3, 4], 
        'y': [20.1, 62.5, 34.8, 42.7]}

# Create a dataframe CLASS object
df = pd.DataFrame(data)

# Use the plot METHOD
df.plot('x', 'y')
Python 中的软件工程原理

文档的益处

  • 指导用户使用项目
  • 避免协作者困惑
  • 避免未来的自己受挫

困惑的用户

Python 中的软件工程原理

自动化测试的益处

  • 比人工测试更省时
  • 发现并修复更多缺陷
  • 随时随地运行测试

用 Pytest 消灭缺陷

Python 中的软件工程原理

复习一下

Python 中的软件工程原理

Preparing Video For Download...