year,profit problem
Title
Question
In [3]: year, profit = loadtxt("/Users/91739/company-a-data.txt", dtype=type(int()))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Input In [3], in <module>
----> 1 year, profit = loadtxt("/Users/91739/company-a-data.txt", dtype=type(int()))
ValueError: too many values to unpack (expected 2)
Python-3.4.3 Other-Types-Of-Plots 02-03 min 40-50 sec
Answers:
Seems like the file is not loaded properly. Please check the path of the file. Place the file company-a-data.txt in the current working directory and try to load it again. To check the current working directory type %pwd in the python terminal.
Login to add comment