Spaces:
Sleeping
Sleeping
updated app.py file, updated dataset
Browse files
app.py
CHANGED
@@ -3,14 +3,13 @@ import gradio as gr
|
|
3 |
import pandas as pd
|
4 |
import plotly.express as px
|
5 |
|
6 |
-
|
7 |
-
# Load the dataset from Hugging Face
|
8 |
ds = load_dataset("egecandrsn/weatherdata")
|
9 |
|
10 |
-
#
|
11 |
-
df = ds['train']
|
12 |
|
13 |
-
#
|
14 |
df['datetime'] = pd.to_datetime(df['datetime'])
|
15 |
|
16 |
# Function for generating temperature trends
|
|
|
3 |
import pandas as pd
|
4 |
import plotly.express as px
|
5 |
|
6 |
+
# load the dataset
|
|
|
7 |
ds = load_dataset("egecandrsn/weatherdata")
|
8 |
|
9 |
+
# Convert the dataset into a pandas DataFrame
|
10 |
+
df = pd.DataFrame(ds['train']) # Assuming the dataset has a 'train' split
|
11 |
|
12 |
+
# Now you can modify the DataFrame
|
13 |
df['datetime'] = pd.to_datetime(df['datetime'])
|
14 |
|
15 |
# Function for generating temperature trends
|