lundi 10 mai 2021

normally distributed Sample data generation

I am working to generate some sample data where every record have Longitude/latitude to show in the map. Since actual data don’t have these data then I want to generate from some pre-existing data. I have 100 records and now I was to add these long/att there. I have collected 10 city Longitude/latitude data in an array. I generated a random indices for my dataframe

Indices = np.random.randint(datapd.shape[0]-1, size=datapd.shape[0]-1)

Now I want to add the Longitude/latitude which are 10 with these data. How can I do it? I was thinking to create a normally distributed Longitude/latitude with data set but not sure how do I populate my Longitude/latitude array index to fill in the dataframe(record)?




Aucun commentaire:

Enregistrer un commentaire