I have a pandas data frame wit the following properties:
Name: df_name,
Concerned Column: col1
If I want to plot a column, I can execute the following code in python shell(>>>) or ipython notebook.
>>>df_name['col1'].plot(kind='bar')
However, I want to use the same function in a script and execute from command line, the plot doesn't appear.
The script I want to write looks like the following:
import pandas as pd
.
.
.
df_name=pd.read_csv('filename')
# Printing bar chart of 'col1'
df_name['col1'].plot(kind='bar')
Any Ideas how to make it execute from a script?