python - 当我尝试运行此代码时,出现以下错误:警告:QT_DEVICE_PIXEL_RATIO 已弃用。而是使用:
问题描述
import pandas as pd
from pandas import DataFrame
import matplotlib.pyplot as plt
data = pd.read_csv("cost_revenue_clean.csv")
X = DataFrame(data, columns = ['production_budget_usd'])
y = DataFrame(data, columns = ['worldwide_gross_usd'])
plt.scatter(X, y)
plt.show
我的错误:
Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
QT_SCREEN_SCALE_FACTORS to set per-screen factors.
QT_SCALE_FACTOR to set the application global scale factor.
解决方案
推荐阅读
- python - 使用动态键按值对 JSON 进行排序
- javascript - 需要使用一个组件中的复选框过滤数据,这里的数据来自另一个组件中的 axios
- firebase - Firebase:删除后节点被逗号替换
- python - 如何绕过“迭代期间字典更改大小”
- android - 使用 notifyItemChange(position,payloads)
- haskell - 如何在 Cabal 中解决“但是给定的安装包实例不存在”?
- python - 基于数据框列中的变量的条件合并?
- javascript - TypeError:prop.map 不是函数
- dart - ListView/Column 中的 DropdownButton 导致呈现错误
- database - 如何为每日事件日志构建数据库?