How to create river type dataset from pandas dataframe #630
-
I would like to see an example of creating a |
Beta Was this translation helpful? Give feedback.
Answered by
raphaelsty
Jul 7, 2021
Replies: 1 comment 6 replies
-
Hi @jacowp357, The classic structure of datasets with River is a list of dictionary. Here is how to convert a pandas dataframe to a list of dictionary: import pandas as pd
# Load Iris dataset.
df = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv')
dataset = df.to_dict(orient = "records")
dataset
You can pass the list of dict to |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
MaxHalford
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jacowp357,
The classic structure of datasets with River is a list of dictionary. Here is how to convert a pandas dataframe to a list of dictionary:
You can pass the list of dict to
evaluate.progressive_val_score()
🙂