Trying to get a graph where if manufacturer is GHI, need to find all the products related to GHI

0 votes

Trying to get a graph where if manufacturer is GHI, need to find all the products related to GHI

man=cn[cn.manufacturer=='GHI']

plt.plot(cn.man,cn.Product_name)

ERROR

AttributeError                            Traceback (most recent call last)
<ipython-input-8-66666c2700b9> in <module>
----> 1 plt.plot(cn.man,cn.Product_name)

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py in __getattr__(self, name)
   5065             if self._info_axis._can_hold_identifiers_and_holds_name(name):
   5066                 return self[name]
-> 5067             return object.__getattribute__(self, name)
   5068 
   5069     def __setattr__(self, name, value):

AttributeError: 'DataFrame' object has no attribute 'man'
Jun 3, 2019 in Python by anonymous
54 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer

How to print a message or the error if a file is not found?

To print the message that file is not ...READ MORE

answered Jan 2, 2019 in Python by Omkar
• 69,040 points
113 views
0 votes
0 answers

What is the technique to get plain text output using a simple templating system?

Can you give an example using html ...READ MORE

Jun 10, 2019 in Python by Waseem
• 4,530 points
46 views
0 votes
1 answer

Is it possible to print all the modules imported in a python script?

Since I am using Python 3.6, I ...READ MORE

answered Jul 3, 2019 in Python by Neel
• 3,010 points
106 views
0 votes
1 answer

What is the python logic to check if a number is armstrong number or not?

number = int(input("enter a number")) s = 0 temp ...READ MORE

answered Jul 30, 2019 in Python by Mohammad
• 3,230 points
68 views
0 votes
0 answers

What is the logic to check if a number is prime or not in python?

I am looking for a function with ...READ MORE

Aug 2, 2019 in Python by Waseem
• 4,530 points
63 views
0 votes
0 answers

try except is not working while using hdfs command

Hi,  I am trying to run following things ...READ MORE

Mar 6, 2019 in Python by anonymous
149 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,091 views
0 votes
0 answers