I use the following approach to add a 50 numbers to my code
for i in range(0, 50):
data = data.append({"describe_file": "This is the start of the story", "data_numbers": data.data_numbers.max() + np.random.randint(1000, 2000) }, ignore_index=True)`
I am trying to modify the code so instead of just adding random numbers between 1000-2000. It should add in percentage, so lets say my max value is
data_numbers.max()
1000
I want to add random numbers that are for example 5% bigger than the max value
Aucun commentaire:
Enregistrer un commentaire