r/StackoverReddit • • Aug 03 '24

Python Value error (pls help)

I am coding for a document with multiple graphs on it, so lots of coding for x and y axis's, I don't know why but I am getting an error, 'x and y must have same first dimension, but have shapes (539,) and (544,)', now I know this is something to do with the number of x's matching the number of y's but I don't know how to resolve this issue, any help would be greatly appreciated.

2 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/Bitter-Hope6731 Aug 05 '24

honestly I was just confident I didn't make any mistakes in the code, I've had to type it out numerous times so I was kind of tired of checking, I know that is just lazy behaviour in hindsight. I am relatively new to advanced coding and have only done this prior in school, the main issues ive had on this code was dealing with Jupyter notebooks which wasn't working well, then trying to wrap my head around 'pip install', then another typo of 'panda' and not 'pandas', I really don't think it was an issue with the platforms and services out there, I just haven't tried anything like this before so I guess it just takes some getting used to, but that's just me, I'm sure someone beginning would have a different experience to myself

1

u/ascii158 Aug 05 '24

Interesting. Thank you for the comprehensive answer. Good luck with your journey!