Comments (5)
Did you finish clean the data already? Do you have any clue to take out the numbers of learning style using ipython?
from questionnaire.
Sorry, I just started working on it. T.T Will let you know when I get a better sense of what I'm doing! :)
from questionnaire.
@jzhang980 & @xsherryxia: To clean the column 'What is your preferred learning style' and extract the relevant numbers, it might be useful to look at Regular Expressions within Python.
In particular, you can import the re Python library. As an example, the below code will match all numerical digits.
import re
example = 'this an example of a text string with numbers inside, like 134 or 135'
all_numbers = re.findall('[0-9]+', example)
print all_numbers
# ['134', '135']
from questionnaire.
@carlshan Thanks for the tip!
from questionnaire.
@carlshan Thanks for providing a clear and helpful example! I edited your post to include a link directly to the Python documentation about RegExes.
from questionnaire.
Related Issues (20)
- How do I undelete a file after deleting git repository and pushing to github? HOT 5
- How to pull up previous ipython file after reopening VM HOT 3
- Help! The original example code in ipython isn't working for me anymore HOT 4
- How to submit the project HOT 3
- Password for sudo/gspread? HOT 1
- Trouble getting curator's code to work. HOT 2
- Going into virtual machine HOT 1
- .cfg file HOT 1
- ipython error HOT 2
- RE: Barriers Group 4 Encountered HOT 1
- Vagrant command issue
- In-Class Questions: Issue for Group 5, from Group 2
- Group 3
- Group 4 HOT 1
- Group 4 Reproducibility Issues HOT 1
- Group 10 Reproducibility Issues
- Group 11 Reproducibility Issues HOT 2
- Issue for Group 5 from Group 4
- Group 1 Reproducibility Issues
- --pylab=inline
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 questionnaire.