← 返回题库
中级

分析高信用分用户与低信用分用户的成交差异

未完成
中级参考 代码结构已给出,请填写 ____ 处
def solve():
    from pyodide.http import open_url
    from io import StringIO
    import pandas as pd
    user_stats=pd.read_csv(StringIO(open_url(____).read()))
    high_credit=user_stats[user_stats['____']>=____]
    low_credit=user_stats[user_stats['____']<____]
    print(____)
    print(____)
    print(____)
    print(____)
    print(____)
    print(____)

示例

输入
solve()
期望输出
High credit (>=90) users: 10
  Avg sell_count: 0.8
  Avg buy_count: 1.0
Low credit (<70) users: 8
  Avg sell_count: 0.6
  Avg buy_count: 0.8
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码