Analizando la rentabilidad de los tags más populares en Hive con Python [ESP/ENG]

19

  • 188
  • 2
  • 1.747
  • Reply

  • Open in the desktop app ADD TO PLAYLIST

    buritica

    Published on Feb 11, 2023
    About :

    Este código utiliza la librería beem y pandas para analizar la ganancia en HBD (una moneda digital en la plataforma Hive) asociada con los 10 tags más populares en la plataforma Hive que comienzan con la palabra "hive".

    El código define una función llamada comments_payouts que toma una fila de un DataFrame como entrada y devuelve el resultado de dividir el valor total de los pagos (total_payouts) por el número de publicaciones de mayor pago (top_posts).

    A continuación, se crea un objeto q que utiliza la clase Query de beem para acceder a los tags más populares en la plataforma Hive. Se utiliza la función Trending_tags para agregar los tags a una lista y crear un DataFrame (df) con estos datos.

    Se reemplaza el texto " HBD" en la columna "total_payouts" con valores numéricos para que sea posible realizar cálculos con ellos. Luego, se filtra el DataFrame para mostrar solo aquellos tags que tienen más de 500 comentarios, y se ordena de mayor a menor por número de comentarios.

    Por último, se agrega una nueva columna llamada "ganancia" al DataFrame utilizando la función comments_payouts y el método apply de pandas, y se imprime el resultado final.

    Este código puede ser útil para aquellos que deseen conocer las ganancias asociadas con los tags más populares en la plataforma Hive y comparar la relación entre el número de comentarios y los pagos en HBD.

    ENGLISH

    This code uses the beem and pandas library to analyze the HBD (a digital currency on the Hive platform) payout associated with the 10 most popular tags on the Hive platform that start with the word "hive".

    The code defines a function called comments_payouts that takes a row of a DataFrame as input and returns the result of dividing the total value of payouts (total_payouts) by the number of top paying posts (top_posts).

    Next, a q object is created that uses beem's Query class to access the most popular tags in the Hive platform. The Trending_tags function is used to add the tags to a list and create a DataFrame (df) with this data.

    The text "HBD" in the column "total_payouts" is replaced with numeric values so that calculations can be performed with them. Then, the DataFrame is filtered to show only those tags that have more than 500 comments, and sorted from highest to lowest by number of comments.

    Finally, a new column called "gain" is added to the DataFrame using the comments_payouts function and the apply method of pandas, and the final result is printed.

    This code may be useful for those who want to know the earnings associated with the most popular tags in the Hive platform and compare the relationship between the number of comments and payouts in HBD.

    GITHUB

    Tags :

    programming python coding tecnology proofofbrain diyhub spanish

    Woo! This creator can upvote comments using 3speak's stake today because they are a top performing creator! Leave a quality comment relating to their content and you could receive an upvote worth at least a dollar.

    Their limit for today is $0!
    Comments:
    Time until buritica can give away $0 to their commenters.
    0 Days 0 Hours 0 Minutes 0 Seconds
    Reply:

    To comment on this video please connect a HIVE account to your profile: Connect HIVE Account

    09:39
    20 views a year ago $

    More Videos

    03:36
    12 views 9 months ago $
    05:06
    20 views 2 years ago $
    00:28
    18 views 2 years ago $
    04:52
    2 views 3 years ago $
    04:11
    8 views 5 months ago $
    03:34
    3 views 2 years ago $