#
io
Input/output streams like StringIO and BytesIO
ProgrammingFix numpy.genfromtxt StringIO Error in Python 3
Resolve TypeError 'Can't convert bytes to str' using io.StringIO with numpy.genfromtxt in Python 3. Use BytesIO and encode('utf-8') for compatibility, even in Python 3.2.1. Full code examples and alternatives included.
1 answer• 1 view