xiddiqui commited on
Commit
0c046ae
·
1 Parent(s): 5a2e9a8

adding app.py and requirements.txt

Browse files
Files changed (2) hide show
  1. app.py +17 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Install necessary packages
2
+ # !pip install datasets pandas
3
+
4
+ from datasets import load_dataset
5
+ import pandas as pd
6
+
7
+ # Load the dataset from Hugging Face
8
+ ds = load_dataset("egecandrsn/weatherdata")
9
+
10
+ # Access the 'train' split
11
+ train_df = ds['train']
12
+
13
+ # Convert the dataset to a pandas DataFrame for easier viewing
14
+ df = pd.DataFrame(train_df)
15
+
16
+ # Display the first few rows of the dataset
17
+ print(df.head())
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ datasets