lhpku20010120's picture
Release WorkSurface-Build v0.1.0 public benchmark inputs
b6beed8 verified
Raw
History Blame Contribute Delete
288 Bytes
# -*- coding: utf-8 -*-
"""Data processing: numpy, pandas"""
import numpy as np
import pandas as pd
# NumPy example
arr = np.array([1, 2, 3, 4, 5])
print("numpy mean:", np.mean(arr))
# pandas example
df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
print("pandas head:\n", df.head())