Jovian
⭐️
Sign In
In [1]:
import numpy as np
import pandas as pd
In [2]:
data = pd.read_csv('/Users/Anshaj/Downloads/forestfires.csv')
In [3]:
data.head()
Out[3]:
In [4]:
data.info()
<class 'pandas.core.frame.DataFrame'> RangeIndex: 517 entries, 0 to 516 Data columns (total 13 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 X 517 non-null int64 1 Y 517 non-null int64 2 month 517 non-null object 3 day 517 non-null object 4 FFMC 517 non-null float64 5 DMC 517 non-null float64 6 DC 517 non-null float64 7 ISI 517 non-null float64 8 temp 517 non-null float64 9 RH 517 non-null int64 10 wind 517 non-null float64 11 rain 517 non-null float64 12 area 517 non-null float64 dtypes: float64(8), int64(3), object(2) memory usage: 52.6+ KB
In [9]:
df = data[['X','Y','day','FFMC','DMC']]
df = df.head()
In [10]:
print(df.to_markdown())
| | X | Y | day | FFMC | DMC | |---:|----:|----:|:------|-------:|------:| | 0 | 7 | 5 | fri | 86.2 | 26.2 | | 1 | 7 | 4 | tue | 90.6 | 35.4 | | 2 | 7 | 4 | sat | 90.6 | 43.7 | | 3 | 8 | 6 | fri | 91.7 | 33.3 | | 4 | 8 | 6 | sun | 89.3 | 51.3 |
In [ ]: