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: ...
Kumail
8 years agoImpactful Individual
Hi Anonymous
These are the sample codes I was running.
1-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame(np.random.randn(1000, 4), index=ts.index, columns=list('ABCD'))
df = df.cumsum()
plt.figure(); df.plot();
2-
import numpy as np
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]})
plt.figure(); df1.plot.bar();