Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas and numpy
#6
Try do it simple place the script an other place eg root Anaconda3 folder.
Run cmd as Administrator .
I can show a run in cmd,i normally always use cmder.
# movie.py
import numpy as np
import pandas as pd
 
data = pd.read_csv("movies.csv") 
print(data.head())
G:\>cd Anaconda3

# Test Python version
G:\Anaconda3>python -V
Python 3.6.5 :: Anaconda custom (64-bit)

# Run script,now is shown version over used 
G:\Anaconda3>python movies.py
           Seven  1995
0  The Godfather  1972
1           Jaws  1975

G:\Anaconda3>
When work command line,then try in PyCharm,make sure that root python.exe in Anaconda3 folder is chosen Configuring Python Interpreter PyChram.
I don't use PyChram,but VS Code.

When you use Jupyter Notebook from Navigator or shortcut,it always use main python.exe in Anaconda3 then it should work.
Or if you use Anaconda prompt(Anaconda own cmd shortcut).
Reply


Messages In This Thread
Pandas and numpy - by gehrenfeld - Dec-17-2018, 10:49 PM
RE: Pandas and numpy - by snippsat - Dec-17-2018, 11:34 PM
RE: Pandas and numpy - by gehrenfeld - Dec-17-2018, 11:47 PM
RE: Pandas and numpy - by snippsat - Dec-18-2018, 01:02 AM
RE: Pandas and numpy - by gehrenfeld - Dec-18-2018, 01:12 AM
RE: Pandas and numpy - by snippsat - Dec-18-2018, 02:18 AM
RE: Pandas and numpy - by gehrenfeld - Dec-18-2018, 01:24 PM
RE: Pandas and numpy - by ayaz786amd - Dec-26-2018, 07:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 816 Mar-26-2024, 02:18 PM
Last Post: snippsat
  Pandas dataframes and numpy arrays bytecrunch 1 1,380 Oct-11-2022, 08:08 PM
Last Post: Larz60+
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,709 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  How to compare two json and write to third json differences with pandas and numpy onenessboy 0 4,773 Jul-24-2020, 01:56 PM
Last Post: onenessboy
  What is the mechanism of numpy function returning pandas object? Ibaraki 2 2,568 Apr-04-2020, 10:57 PM
Last Post: Ibaraki
  "erlarge" a numpy-matrix to numpy-array PhysChem 2 3,050 Apr-09-2019, 04:54 PM
Last Post: PhysChem
  Convert indexing For Loop from MATLAB (uses numpy and pandas) bentaz 3 4,235 Mar-20-2018, 08:29 PM
Last Post: bentaz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020