Update a specific element in all a list of N lists

2021-12-16 Thread hanan lamaazi
Dear All, I really need your assistance, I have a dataset with 1005000 rows and 25 columns, The main column that I repeatedly use are Time, ID, and Reputation First I sliced the data based on the time, and I append the sliced data in a list called "df_list". So I get 201 lists with 25 columns

Re: Run code automatically

2020-04-20 Thread hanan lamaazi
9FDF2> Le lun. 20 avr. 2020 à 12:44, Souvik Dutta a écrit : > No no I did not tell you to do it in that way. I said you could try > putting the whole the code in the .py file in a for loop. That is:- > for a in range(10): > > > On Mon, 20 Apr, 2020, 1:55 pm hanan lamaazi,

Re: Run code automatically

2020-04-20 Thread hanan lamaazi
e any other solution? or what is wrong with those expressions? Thank you Le jeu. 16 avr. 2020 à 16:57, Souvik Dutta a écrit : > Do you want to run the code many times after just clicking run once? If so > then I think grouping the whole program in one for loop would do the task. > > Souv

Run code automatically

2020-04-16 Thread hanan lamaazi
Dear All, I just start the self learning of python, and I tried to use it in jupyter notebook. I work on real dataset and I used pandas for that. Now my problem is I developed two separate code but dependent the first one should run to give me samples from my dataset and do the clustering (I use

Dataset training using Kmeans

2020-01-05 Thread hanan lamaazi
Dear all, I'm actually using the K-means algorithm for clustering, and scikit-learn machine learning in python. when I want to print my "score_accuarcy" using this command >print(metrics.accuracy_score(y_test, y_pred)) I get the following error : "Classification metrics can't handle a mix o