I cannot plot data using python. Seems like a localisation problem, comma is used instead of full stop as a decimal separator in a matplotlib function. Feedback Type: Frown (Error) Timestamp: ...
htp84
8 years agoRegular Visitor
tomyc Thank you, it works :smileyhappy:
HadiRajani You have to add plt.show() in the bottom of your script. Also, the import of numpy and the use of plt.figure() is unnecassary in the example.
Below is a modified version of your code that works on my computer after I changed my regional setting using tomyc temporary solution.
import pandas as pd
import matplotlib.pyplot as plt
df1 = pd.DataFrame({'employee': ['Bob', 'Jake', 'Lisa', 'Sue'],
'ages': [10, 40, 58, 25], 'salary': [1000, 40000, 58000, 25000]})
df1.plot.bar()
plt.show()