Have a look at http://stackoverflow.com/questions/4960208/python-2-7-getting-user-input-and-manipulating-as-string-without-quotations
using input instead of raw_input is ending up using a variable instead of a string (unless you're putting what you type in quotes).
Some alternative code to google
import pandas as pd stations = pd.read_csv('stations.csv', names=['call_sign', 'station_name']) my_callsign = raw_input("Please enter the callsign ") print stations[stations.call_sign == my_callsign]
could also print stations.head() print stations[stations.station_name == 'Islington']
tried this but it didn't work unfortunately, a bit of googling shows:
1 Attachment
Ah, you're on Python 3 maybe? I'm on 2.7
@ObiWomKenobi started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Have a look at
http://stackoverflow.com/questions/4960208/python-2-7-getting-user-input-and-manipulating-as-string-without-quotations
using input instead of raw_input is ending up using a variable instead of a string (unless you're putting what you type in quotes).
Some alternative code to google
could also
print stations.head()
print stations[stations.station_name == 'Islington']