Comments (6)
It looks like something is damaging that file, by replacing parentheses with angle brackets. Here is what that line really looks like:
return s.decode('ascii', 'replace').replace(u'\ufffd', u'?')
There must be some step where instead of being pulled out of the zip file intact, the copy of the file on your computer is getting altered.
from pycon-pandas-tutorial.
Thank you so much for replying so quickly. I went back and looked into the code and found that I made an error in reading what the error given stated. The code is not being altered, I just mistook the ( ) signs for < > signs. The code is written correctly in the file. However, I am still getting the same SyntaxError: invalid syntax for the line 217.
Do you know what could be causing the issue?
Thank you!
from pycon-pandas-tutorial.
You could be using a very old copy of Python — what version is your Python interpreter, if you type python --version
?
from pycon-pandas-tutorial.
I am using python version 3.4 currently.
On Mon, Oct 26, 2015 at 2:39 PM, Brandon Rhodes [email protected]
wrote:
You could be using a very old copy of Python — what version is your Python
interpreter, if you type python --version?—
Reply to this email directly or view it on GitHub
#9 (comment)
.
from pycon-pandas-tutorial.
With Python 3.4 on my system, that file can be imported without any problem:
cd build
python3.4 -c 'import BUILD'
So I am at a bit of a loss to understand why exactly the same file would make Python 3.4 happy on my machine, but unhappy on yours. Here is the checksum of exactly my current version of the file if you want to check whether yours has become damaged somehow:
$ md5sum BUILD.py
b3e2419222288e5745090c1108341e22 BUILD.py
Simply reading the line of code with my eyes, it is perfectly valid Python syntax and Python 3.4 should not have any problems with it — there is no syntax error in the code that I can see.
from pycon-pandas-tutorial.
Please feel free to re-open this issue if you are able to double-check the checksum on that file so that we can try to discover the syntax error. I hope that you have gotten it fixed by now and are enjoying the tutorial!
from pycon-pandas-tutorial.
Related Issues (20)
- ftp data sites do not work HOT 3
- Leading couple HOT 1
- Problem no. 3, 5, 6 and 7 in Exercise-4 HOT 1
- Data not downloadable HOT 2
- Solutions-1.ipynb doesn't work HOT 1
- dataframe sort() doesn't exist any more HOT 4
- ‘’FTP‘’ protocol problem HOT 4
- Exercise 2 - Plotting n values over career questions HOT 1
- Handling UTF-8 Encoding for cast.csv HOT 4
- please help me with the build.py issue HOT 3
- genres.list.gz is not parsed by BUILD.py HOT 3
- Is this tutorial up to date? HOT 2
- Can we remove redundant exercises? HOT 6
- creating Cast csv file HOT 7
- Exercise 1 - Treasure Island movies question HOT 1
- Titles.csv file? HOT 1
- Data file missing HOT 5
- Exercises-3 Solution | Use groupby() to determine how many roles are listed for each of the Pink Panther movies. HOT 2
- NaN values in cast.title prevent c.loc[] from being fast after .sort_index()
- Be more specific with English in questions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycon-pandas-tutorial.