microsoft / vivainsights-py

Python package for Analyzing and Visualizing data from Viva Insights
https://microsoft.github.io/vivainsights-py/
Other
13 stars 2 forks source link

Patch version to `v0.3.1` #25

Closed martinctc closed 4 months ago

martinctc commented 8 months ago

Summary

This branch adds identify_nkw() to the library, makes some corrections to the documentation, and increments the package version to v0.3.1.


Changes

  1. Adds identify_nkw().
  2. Have a data return option for create_inc().
  3. Add 'suggestion' return type for extract_hr().
  4. Fix bug: Error when setting hrvar = None for some functions. (#28)
  5. Fix bug: create_rank() function if we pass hrvar as string parameter then throwing keyword. (#29)
  6. Fix bug: create_line() functionality, most of the time legend is overlapping with the plot. (#30)
  7. Fix bug: create_boxplot() same plot on different metric and different hrvar. (#31)
  8. Fix bug: create_inc() function, plot is overlapping. (#32)

Checks


Examples :

create_rank:

create_rank(data = vi.load_pq_data(), hrvar = "Organization", metric = "Emails_sent", return_type = "plot")

image

create_inc:

create_inc(vi.load_pq_data(), metric = "Collaboration_hours", hrvar = "LevelDesignation",mingroup=5,threshold=5.3,position='above',return_type='plot')

image

create_boxplot:

create_boxplot(vi.load_pq_data(), metric = "Collaboration_hours", hrvar = "Organization", return_type = "plot")

image

create_line:

create_line(df, metric = "After_hours_collaboration_hours", hrvar = "FunctionType")

image

create_trend:

create_trend(data =vi.load_pq_data(), metric = "Collaboration_hours", hrvar = "LevelDesignation",return_type="plot")

image


Notes

This issue fixes #28, #29, #30, #31, #32,

martinctc commented 4 months ago

All looks good - changes pushed to PyPI as v0.3.1: https://pypi.org/project/vivainsights/0.3.1/

Thanks @sachinstl and @ia404 for your contributions!