错误:zygote_host_impl_linux.cc(89) - 折线图

2024-05-29 03:10:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试Spotify团队提供的新库(Chartify)。运行以下代码时,我收到以下错误:

import chartify
import pandas as pd
file = "./data/Social_Network_Ads.csv"
data = pd.read_csv(file, sep = ',')

chart = chartify.Chart(blank_labels=True, y_axis_type='categorical', x_axis_type='linear')
chart.plot.scatter(
        data_frame=data,
        categorical_columns='Gender',
        numeric_column='EstimatedSalary',
        color_column='EstimatedSalary')
chart.style.color_palette.reset_palette_order()

chart.set_title("Scatter Plot w.r.t. Salaries of different Gender")
chart.set_subtitle("Labels for specific observations.")
chart.show()


[9643:9643:1127/175201.738360:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

虽然正在创建HTML,但是打开HTML时,它会显示一个空白页面。在


Tags: csvimportdataastypechartcolumngender

热门问题