English 中文(简体)
估价人: 数据 框架构造者在制作按性别分列的销售捐款图表时没有适当叫作
原标题:Valueerror: DataFrame constructor not properly called while creating a pie chart of sales contribution by gender

I am trying to create a pie chart in plotly for showing the distribution of sales across males and females. My code is

gender_sales = df.groupby( Gender )[ gross income ].sum fig = px.pie(gender_sales, values= gross income ,names = Gender )

在执行时,我发现以下错误。

数值: 数据 框架构造者没有被适当称作!

请提供帮助。

我期待看到一张皮图。

问题回答

暂无回答




相关问题
Best fit curve for trend line

Problem Constraints Size of the data set, but not the data itself, is known. Data set grows by one data point at a time. Trend line is graphed one data point at a time (using a spline/Bezier curve). ...

Trend analysis using iterative value increments

We have configured iReport to generate the following graph: The real data points are in blue, the trend line is green. The problems include: Too many data points for the trend line Trend line does ...

Building an index of URLs , what features to include?

I am working towards building an index of URLs. The objective is to build and store a data structure which will have key as a domain URL (eg. www.nytimes.com) and the value will be a set of features ...

Efficient way to analyze large amounts of data?

I need to analyze tens of thousands of lines of data. The data is imported from a text file. Each line of data has eight variables. Currently, I use a class to define the data structure. As I read ...

Matplotlib: Formatting dates on the x-axis in a 3D Bar graph

Given this 3D bar graph sample code, how would you convert the numerical data in the x-axis to formatted date/time strings? I ve attempted using the ax.xaxis_date() function without success. I also ...

Displaying access log analysis

I m doing some work to analyse the access logs from a Catalyst web application. The data is from the load balancers in front of the web farm and totals about 35Gb per day. It s stored in a Hadoop HDFS ...

热门标签