Data analysis

As the data is ready, we can start our analysis. We'll explore time-series analysis for analyzing our dataset using the features that we have extracted. Our goal is to answer the following questions:

  • How does sentiment evolve over time? Are there any peaks?
  • What are the periods when users comment more?
  • What is the day of week when users put the most positive comments?
  • What is the day of week when they comment most actively?

In order to answer these questions, we need to work on data in time. Pandas dataframe structures have many interesting properties for time series handling. In previous steps, we have changed the index in our data frame by setting it to the datetime object. We can now use it to resample our data according to the time frame.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.119.114