TypeError: unsupported operand type(s) for -: 'str' and 'str' #1945
Answered
by
SkiingPickle
SkiingPickle
asked this question in
Q&A
-
Hello, I am having trouble with the soiling function for hsu. I am checking my data types, where I have my dates as objects, and rain, pm2.5 and pm10 as floats. I keep getting a type error that says strings are trying to subtract. If anyone has any information on why this may be happening, please let me know! NONE OF MY DATA IS STR |
Beta Was this translation helpful? Give feedback.
Answered by
SkiingPickle
Jan 11, 2024
Replies: 1 comment 1 reply
-
Can you post the full error message (including traceback)? It includes which line of code in pvlib is raising the error, which will probably give a good hint of what the problem is. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having my dates indexed as objets was the issue, finally figured it out! Thank you!