Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
season-polar-plots
Readme
pip install season-polar-plots
This is a package to create polar plots for displaying seasonal trends in time series data. Requires
>>> from season_polar_plots import SeasonData
Parameters | |
---|---|
data | pandas Series or single column DataFrame with datetime index |
year_start | (int) start year of period to be analyzed |
year_end | (int) end year of period to be analyzed |
t_res | (str) 'daily' or 'monthly': temporal resolution. Monthly values can be aggregated from daily values if 'monthly' is chosen (see sp_plot() and get_mgrid() function) |
Parameters | |
---|---|
label | (str) label for time series variable |
mode | (str) 'all' uses all data points; daily resolution: 'min' or 'max' filter time series on annual extreme values; monthly resolution: 'sum', 'mean' / 'min', 'max' aggregate / filter data for each month |
rd_years | (bool) as default, years are plotted in radius direction; rd_years=False plots variable in radius direction |
col | (str) color gradient (default 'viridis_r') |
a | (float) transparency alpha (0-1) |
psize | (float) marker size for daily data points |
pmarker | (MarkerStyle) marker style for daily data points |
nylabels | (int) number of (year) labels in radius direction |
off | (int or float) off-set from circle center |
rlab_angle | (float) angle of the radius axis labels |
linreg | (bool) if True plots linear regression (day in year ~ year) in polar projection (only for daily extreme values) |
start_month | (int) start month for linear regression |
Returns: Plot; if linreg=True prints R² and p-values for slope and intercept
Parameters | |
---|---|
mode | (str) 'min' or 'max': filter time series on annual extreme values |
Returns: DataFrame (containing nr of day in year of extreme values, extreme values)
Parameters | |
---|---|
mode | (str) 'all' if data is already in monthly resolution; 'sum', 'mean' / 'min', 'max' aggregate / filter data for each month |
Returns: DataFrame (containing monthly data)
Parameters | |
---|---|
mode | (str) 'all' to use all data points, 'min' or 'max' to filter on extreme values |
plot | (bool) if True plots the data as circular histogram and fitted von-Mises distribution |
print_par | (bool) if True prints the fitted von-Mises parameters kappa and mu |
bins | (int) number of bins for histogram |
col_hist | (str) color of the histogram |
col_vm | (str) color of the fitted von Mises distribution |
off | (float) off-set from circle center |
a | (float) transparency alpha (0-1) |
rwidth | (float) relative width of histogram bins |
Returns: Plot; kappa, mu, mu_nday
FAQs
Create polar plots to display seasonal trends in time series data.
We found that season-polar-plots demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.