Posts by vinifrm • 21 points
3 posts
-
-1
votes1
answer977
viewsQ: Scatterplot trend line in Python matplotlib
Suppose I have two simple Python lists and create a scatter chart: x = [548, 677, 987, 2, 29, 1114, 521, 999] y = [96, 775, 258, 369, 410, 99, 5, 1117] import matplotlib.pyplot as plt plt.scatter(x,…
-
1
votes1
answer865
viewsQ: Separation of rows into columns in R
Friends, I am learning R. I am selecting the biggest consumers of some types of beverage in South America. I need to separate the dataframe below in the following columns: pais, bebida and litros,…
-
0
votes2
answers942
viewsQ: Loop R to find the highest value in a column
I would like a help in the code below. I have in the object df_ar a column called litros_cerveja, with the consumption of the drink in the countries of South America in the year 2010. I would like…