Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Array dimension don't match
Post: Array dimension don't match

Hey, I have this set of data: Date 2022-01-05 -0.012684 -0.011469 -0.013368 -0.004848 2022-01-06 -0.002342 -0.000050 -0.005381 -0.000241 2022-01-07 -0.00...
asja2010 General Coding Help 0 1,112 Feb-23-2023, 04:22 PM
    Thread: x and y must have same first dimension, but have shapes (1,) and (50,)
Post: RE: x and y must have same first dimension, but ha...

(Jan-12-2023, 03:46 PM)deanhystad Wrote: An indentation error? for R in returns: constraints = ({'type': 'eq', 'fun': b}, {'type': 'eq', 'fun': lambda w: GR(w) - R}) opt =...
asja2010 General Coding Help 5 2,685 Jan-12-2023, 07:14 PM
    Thread: x and y must have same first dimension, but have shapes (1,) and (50,)
Post: RE: x and y must have same first dimension, but ha...

The error message is the following: ValueError Traceback (most recent call last) <ipython-input-182-1237a1515f04> in <module> 5 plt.colorbar(label='sha...
asja2010 General Coding Help 5 2,685 Jan-12-2023, 01:38 PM
    Thread: x and y must have same first dimension, but have shapes (1,) and (50,)
Post: x and y must have same first dimension, but have s...

Hey there python community, after successfully plotting a graph, when it comes to plotting the frontier of it, I get this message: ValueError: x and y must have same first dimension, but have shapes (...
asja2010 General Coding Help 5 2,685 Jan-11-2023, 03:00 PM
  Shocked Thread: plt.scatter() errors
Post: plt.scatter() errors

Hey Py community, I'm writing down Markowitz's efficient frontier with jupy using the 4 significant cryptos as stocks and verything is fine until the plt.plot() function comes up. I've used three diff...
asja2010 General Coding Help 0 1,535 Oct-13-2022, 08:15 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020