How can the scikit-learn quantile transformer module be used to pre-process river stream data? #693
-
The Scikit-learn Quantile Transformer module is being used to pre-process river stream object. The following is the piece of code that attempts to do this:
The above piece of code results in an error: TypeError: unhashable type: 'dict' How can this be rectified? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I'm not sure what to say. You're passing a Meta: please format the code property and make it reproducible. Please use GitHub's Markdown syntax to highlight the code. Every post you make is of very low quality and makes it frustrating to answer. Meta 2: please do not open a discussion every time you have a question. It's polluting the Discussions tab. Just keep the questions in a single discussion. Frankly, I think you should spend more time reading the documentation and the examples therein. You seem to have a fundamental lack of understand of 1) Python 2) The approach proposed by River. Don't take me wrong: it's fine to be a beginner and not to know these things. But I seriously advise you to spend some more time understanding what you're doing instead of asking us open questions such as these. You won't progress like this. |
Beta Was this translation helpful? Give feedback.
-
The Please read through the code carefully. The relevant libraries have been imported to reflect the use of a scikit learn scaler. Also, I shall make sure that related questions are nested within one discussion from now on and the code snippets are legible. I apologize for the inconvenience caused. Thank you |
Beta Was this translation helpful? Give feedback.
I'm not sure what to say. You're passing a
pandas.DataFrame
to a River scaler. River objects expect to be passed dictionaries, not DataFrames. Isn't this clear from the documentation? I'm really at a loss here... You don't seem to be putting a lot of effort into understanding the library.Meta: please format the code property and make it reproducible. Please use GitHub's Markdown syntax to highlight the code. Every post you make is of very low quality and makes it frustrating to answer.
Meta 2: please do not open a discussion every time you have a question. It's polluting the Discussions tab. Just keep the questions in a single discussion.
Frankly, I think you should spend more time readi…