Posts by Enzo_arm • 50 points
4 posts
-
1
votes1
answer26
viewsA: Best way to delete a sample from a Dataframe at the same time save it in a variable
Hello, in the "sklearn" library you can import a separate function for data separation between training and testing, and also choose the size of the training/test ratio: from sklearn.model_selection…
-
-2
votes2
answers768
viewsA: How to fill a column of a pandas dataframe using corresponding values from another column in another dataframe?
I don’t know if I understand your question, but try something with the command "merge" pandas(https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.merge.html) Maybe I can with…
-
0
votes1
answer35
viewsA: How do I read multiple files and save them?
To read multiple files that follow a pattern in the name, try using something similar to the following example: import glob # Returns a list of names in list files. print("Using glob.glob()") files…
-
2
votes1
answer94
viewsA: Python with float variable problems
This occurs naturally with decimal numbers because they are represented a "floating point" in the computer memory, which generates a certain imprecision in this type of variable.