How to run externally

329
March 31, 2017, at 04:24 AM

I have plotted a graph from a CSV file using SPYDER from PYTHON

Here is my code

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.read_csv('GM_NB_Replica_Test.csv', skiprows=8)
data = df.ix[:,19:116].T
data.columns=df['SN']
data.plot()
plt.show()`

Here is my Output inside the python console:

How do i get this to run externally (Not inside python console, and not in new python console)

I have already tried changing the run settings (See photo below)

However it just gives me a black Python CMD and then no graph.

any thoughts?

current error when running in CMD

Answer 1

From your command prompt (CMD):

cd C://location_of_your_script
python script.py
READ ALSO
Why does Python allow function calls with wrong number of arguments?

Why does Python allow function calls with wrong number of arguments?

Python is my first dynamic languageI recently coded a function call incorrectly supplying a wrong number of arguments

293
How can i grab the ID of all posts?

How can i grab the ID of all posts?

Recently got into the XML-RPC Library in python and i need to grab the ID of all posts in my wordpress websiteTried using the EditPost()) command but it seems that the ID of the posts are needed

315
Using value field in a dictionary as a key to split out into multiple dictionaries

Using value field in a dictionary as a key to split out into multiple dictionaries

I have a Python Dictionary that currently looks like this:

280
Ruby OpenSSL RSA decryption failing due to padding check failed

Ruby OpenSSL RSA decryption failing due to padding check failed

I'm trying to replicate the following python code in rubyThe python code works fine, the ruby code fails due to "padding check failed"

491