HF RL Explorer

Task: Read CSV Data from Package or String in Python 3

Task: Read CSV Data from Package or String in Python 3: a task in Terminal-Lego-15k (Harbor dataset). You need to read CSV text data from a package using pandas.read csv() . The challenge is that in Python 3, StringIO.StringIO from Python 2 no longer exists, and io.StringIO only accepts Unicode…

The task

You need to read CSV text data from a package using `pandas.read_csv()`. The challenge is that in Python 3, `StringIO.StringIO` from Python 2 no longer exists, and `io.StringIO` only accepts Unicode strings. Additionally, `pkgutil.get_data()` returns bytes, not strings.

Part of PrimeIntellect/Terminal-Lego-15k.