mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
9b42ba8f10
* changes * changes * revert changes * changes * add changeset * notebooks script * changes * changes --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
21 lines
728 B
Python
21 lines
728 B
Python
import pandas as pd
|
|
from random import randint, random
|
|
|
|
temp_sensor_data = pd.DataFrame(
|
|
{
|
|
"time": pd.date_range("2021-01-01", end="2021-01-05", periods=200),
|
|
"temperature": [randint(50 + 10 * (i % 2), 65 + 15 * (i % 2)) for i in range(200)],
|
|
"humidity": [randint(50 + 10 * (i % 2), 65 + 15 * (i % 2)) for i in range(200)],
|
|
"location": ["indoor", "outdoor"] * 100,
|
|
}
|
|
)
|
|
|
|
food_rating_data = pd.DataFrame(
|
|
{
|
|
"cuisine": [["Italian", "Mexican", "Chinese"][i % 3] for i in range(100)],
|
|
"rating": [random() * 4 + 0.5 * (i % 3) for i in range(100)],
|
|
"price": [randint(10, 50) + 4 * (i % 3) for i in range(100)],
|
|
"wait": [random() for i in range(100)],
|
|
}
|
|
)
|