Pycharm give an error when l run Python?

-1

l m learning Pandas and l prefer to use Pycharm for that and l created a project to combine my all works and for the first exercise l run on Pycharm , it gave me an error.

here is my example code:

import pandas as pd

names1880 = pd.read_csv('data/ch02/names/yob1880.txt', names=['name', 'sex', 'births'])

birth_sum=names1880.groupby('sex').births.sum()

when l would like to see how code it works on Pycharm ,it gave this error below:

Fatal Python error: Py_Initialize: unable to load the file system codec
  File "C:\Python27\Lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00001774 (most recent call first):

Process finished with exit code -1073740791 (0xC0000409)

l run same code with IDLE and it gave no error. l wonder how l can fix this problem on Pycharm ?

python
pandas
pycharm
asked on Stack Overflow Nov 2, 2016 by ömer sarı

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0