I want to add ten more rows to each column of the dataset provided below. It should add random integer values ranging from :
- 20-27 for temperature
- 40-55 for humidity
- 150-170 for moisture
Dataset: Temperature Humidity Moisture
0 22 46 0
1 36 41.4 170
2 18 69.3 120
3 21 39.3 200
4 39 70 150
5 22 78 220
6 27 65 180
7 32 75 250
I have tried: import numpy as np import pandas as pd
data1 = np.random.randint(20,27,size=10) df = pd.DataFrame(data, columns=['Temperature'])
print(df)
This method deletes all the existing row values and gives out only the random values. What I all need is the existing rows and the random values in addition.