Can anyone please share the desired output for the first TODO of this task?
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Mar 15 2024
In T358095#9633410, @MahimaSinghal wrote:In T358095#9633407, @Mitumoni_kalita wrote:In T358095#9633339, @MahimaSinghal wrote:In T358095#9633326, @Mitumoni_kalita wrote:@MahimaSinghal Can you please help me with how page views API is being used for this task?
Hi @Mitumoni_kalita ,Yeah Sure. I am more than willing to help.
PageViews API will be used in the very first TODO of this microtask. Where you have to use the API to gather pageviews count in the time period each revision was made.
You can refer to the documentation of the API here : mwviews documentation: https://github.com/mediawiki-utilities/python-mwviews.
The above image is of the sample example given in the Notebook on how can we use the API.The function "article_views" under PageviewsClient class already have used the pageviews count API and did all the implementation right to show pageview count of any article in the time period each revision was made ; so I didn't understand what actually we need to do under this TODO of the Microtask ? @MahimaSinghal
That is just an example, we have to do it for a sample of articles other than the two given, and we have to calculate the pageview count for every revision_timestamp.
In T358095#9633637, @BruceMahagwa wrote:In T358095#9633407, @Mitumoni_kalita wrote:In T358095#9633339, @MahimaSinghal wrote:In T358095#9633326, @Mitumoni_kalita wrote:@MahimaSinghal Can you please help me with how page views API is being used for this task?
Hi @Mitumoni_kalita ,Yeah Sure. I am more than willing to help.
PageViews API will be used in the very first TODO of this microtask. Where you have to use the API to gather pageviews count in the time period each revision was made.
You can refer to the documentation of the API here : mwviews documentation: https://github.com/mediawiki-utilities/python-mwviews.
The above image is of the sample example given in the Notebook on how can we use the API.The function "article_views" under PageviewsClient class already have used the pageviews count API and did all the implementation right to show pageview count of any article in the time period each revision was made ; so I didn't understand what actually we need to do under this TODO of the Microtask ? @MahimaSinghal
Hi @Mitumoni_kalita. We need to use the function article_views to find out how many page_views were there in between subsequent revisions. One way to do this is to make a function that takes as an arguments the page_title and returns a new dataframe with the page_views included for that particular page_title. Hope this helps.
In T358095#9633339, @MahimaSinghal wrote:In T358095#9633326, @Mitumoni_kalita wrote:@MahimaSinghal Can you please help me with how page views API is being used for this task?
Hi @Mitumoni_kalita ,Yeah Sure. I am more than willing to help.
PageViews API will be used in the very first TODO of this microtask. Where you have to use the API to gather pageviews count in the time period each revision was made.
You can refer to the documentation of the API here : mwviews documentation: https://github.com/mediawiki-utilities/python-mwviews.
The above image is of the sample example given in the Notebook on how can we use the API.
@MahimaSinghal Can you please help me with how page views API is being used for this task?
In T358095#9618055, @GonzaGertrude wrote:In T358095#9617956, @Mary_agiamah wrote:I am have having issues understanding the microtask, can someone shed more light about what the task is about.
What is confusing you?
In T358412#9633181, @Aixvik wrote:In T358412#9633169, @Abishek_Das wrote:In T358412#9632678, @Aixvik wrote:Not able to generate video from the data frame? What might the reason be? As we have 7k+ columns and it's taking time can we generate a bar chart race video of only a few columns as an example?
And I read in the documentation that we should have 'ffmpeg' installed on our device as I am working on web paws Jupyter notebook and not locally do I also have to install 'ffmpeg'?After installing ffmpeg try to add only few rows and columns to check everything works properly
Already working on only 5 columns and 60 rows
Mar 14 2024
Do we have to continue with other tasks as well after completing Task A?
In T358412#9632185, @Abishek_Das wrote:In T358412#9632174, @Mitumoni_kalita wrote:In T358412#9632167, @Abishek_Das wrote:In T358412#9632120, @Mitumoni_kalita wrote:In T358412#9631995, @Abishek_Das wrote:Are you including all the 7519 columns in your video 😅?
In T358412#9631917, @Mitumoni_kalita wrote:Thank you so much to all, It worked.
How should I proceed?
Hmm, if you're including 7519 columns, it will take time. For now, just add 5 rows and 5 columns, or 10 rows by 10 columns. I think I read in the bar chart documentation that the more rows and columns you have, the longer it takes to render.Since, it generates frame by frame something like that. Also, only play the video after your cell is done running.
Great 🥳
In T358412#9632167, @Abishek_Das wrote:In T358412#9632120, @Mitumoni_kalita wrote:In T358412#9631995, @Abishek_Das wrote:Are you including all the 7519 columns in your video 😅?
In T358412#9631917, @Mitumoni_kalita wrote:
In T358412#9631995, @Abishek_Das wrote:Are you including all the 7519 columns in your video 😅?
In T358412#9631917, @Mitumoni_kalita wrote:
This is the dataframe structure that I have generated of the cumulative sum which is sent to the bar_chart_race function, please confirm me if this is the correct structure that i have generated. let me know if I have made any error
In T358412#9629628, @GonzaGertrude wrote:In T358412#9629419, @Abishekdascs wrote:In T358412#9629390, @DevJames1 wrote:In T358412#9629375, @Mitumoni_kalita wrote:
I have tried implementing bar-chart-race locally on my machine as well as also tried on PAWS as one of the applicant advised above , but unable to play the video. Can anyone here help me with this issue and rectify my error?
@EderportoWhen you play video what is the error. Does it play but shows gibberish?
Can you provide more info@Mitumoni_kalita for now avoid filtering warining unless you are able to play the video since warnings/error might contain useful info.
Has the video file appeared in your folder?
import warnings
warnings.filterwarnings("ignore", category=UserWarning)
import IPython.display as display
yeah sure
No
But still unable to get the video
I have tried implementing bar-chart-race locally on my machine as well as also tried on PAWS as one of the applicant advised above , but unable to play the video. Can anyone here help me with this issue and rectify my error?
@Ederporto





