Assuming you just want to write the string '649'
to the file, change row
to '649'
or issue f.write(str(row))
.
More Related Contents:
- create a loop inside a loop in python
- TypeError: Missing 1 required positional argument: ‘self’
- How do I get indices of N maximum values in a NumPy array?
- Error: pandas hashtable keyerror
- Writing a pandas DataFrame to CSV file
- Python Windows Authentication username and password is not working
- What is the difference between a string and a byte string?
- Is everything an object in Python like Ruby?
- How to get Linux console window width in Python
- How do you get the logical xor of two variables in Python?
- Tkinter adding line number to text widget
- How do I restart a program based on user input?
- Why does Python return 0 for simple division calculation?
- Framerate affect the speed of the game
- Export pandas Styled table to image file
- PIL rotate image colors (BGR -> RGB)
- How to get a list of variables in specific Python module?
- changing all dates to standard date time in dataframe
- CSV new-line character seen in unquoted field error
- Double precision floating values in Python?
- models.py getting huge, what is the best way to break it up?
- Cannot find col function in pyspark
- How do I catch a specific HTTP error in Python?
- Send keys control + click in Selenium with Python bindings
- How do you replace all the occurrences of a certain character in a string?
- Add column in dataframe from list
- Python Multiprocessing with Distributed Cluster
- Pandas set_index does not set the index
- Bulk-fetching emails in the new Gmail API
- ImportError: No module named sklearn.cross_validation