saving . . . saved year,profit problem has been deleted. year,profit problem has been hidden .
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 22-01-22, 8:27 p.m. Ashwani55

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.
01-02-22, 6:07 p.m. aditya94palaparthy@gmail.com


Log-in to answer to this question.