semvec/pypi-packages huggingface dataset:
fieldanimation 0.1.3a0
FieldAnimation: animate 2D vector fields
License: MIT
Keywords: fieldanimation,OpenGL,Widget,Vector field

# FIELDANIMATION #
FIELDANIMATION a Python package to animate 2D vector fields.

### What is it? ###
Field Animation is a Python package for the visualization of 2D vector fields
that exploits the capabilities of modern graphic cards. Vector fields are
represented through particles that move along the flow lines of the field at
a speed and color proportional to its modulus in an OpenGL window.

Interactive control of speed, color and number of animated particles is
possible as the whole rendering process happens in the GPU in real time.
A background image can be shown to add information for the interpretation of
the results.

Highlights:

* Animation parameters can be changed in real time

* The OpenGL window can be embedded in any Python application.

Field Animation was published on
[SoftwareX, Volume 9, January–June 2019, Pages 211-216](
https://www.sciencedirect.com/science/article/pii/S235271101830205X).

### Where is the documentation? ###

[Here!](https://bvidmar.bitbucket.io/fieldanimation/)

### How can I see it in action? ###
Field Animation comes with an example application. Run it with:

    python3 -m fieldanimation.examples.app -g

[//]: # (fieldanimation/examples/app.gif)
[//]: # (app.gif)

![](fieldanimation/examples/app.gif)
![](https://bytebucket.org/bvidmar/fieldanimation/raw/0403e6a5caeb8e2626c5912038c2c7da36fd2406/app.gif)

## NOTE: ##
This application example uses  **Pillow**, **imgui** and **glfw**
so please install these packages to run it:

    pip3 install pillow imgui glfw

### Who do I talk to? ###

* [Nicola Creati](mailto:ncreati@inogs.it)

* [Roberto Vidmar](mailto:rvidmar@inogs.it)
py-holiday-calendar 0.0.6
Simple date operations on pandas dataframes of difference and adding business days also adjusted for holidays.
License: MIT
Keywords: sample,business date,development,custom holidays

Py Holiday Calendar
============================

**py_holiday_calendar** is a Python package containing methods to manipulate date columns of pandas dataframes
adjusting for business days and holidays.

.. image:: https://travis-ci.com/Parasgupta44/py_holiday_calendar.svg?branch=master
    :target: https://travis-ci.com/Parasgupta44/py_holiday_calendar
.. image:: https://img.shields.io/pypi/v/py-holiday-calendar.svg
    :target: https://img.shields.io/pypi/v/py-holiday-calendar
.. image:: https://img.shields.io/pypi/status/py-holiday-calendar.svg
    :target: https://img.shields.io/pypi/status/py-holiday-calendar
.. image:: https://img.shields.io/pypi/format/py-holiday-calendar.svg
    :target: https://img.shields.io/pypi/format/py-holiday-calendar
.. image:: https://img.shields.io/pypi/dm/py-holiday-calendar.svg
    :target: https://img.shields.io/pypi/dm/py-holiday-calendar

Usage
^^^^^^^^^^^^^
Just run the following snippet in your python env and start using the package.

.. code-block:: python

    pip install -v py-holiday-calendar

Docs
^^^^^^^^^^^^^

You can find the docs `here <https://py-holiday-calendar.readthedocs.io/en/latest/>`_.

Example
^^^^^^^

.. code-block:: python

    import pandas as pd
    from py_holiday_calendar import py_holiday_calendar as check

    # Making a dummy dataframe
    df = {
    'day': ['1/1/2018', '4/8/2019', '12/13/2019', '1/2/2019'],
    'temp': [44, 45, 87, 66],
    'str': ['Brake', 'Data', 'Gimp', 'data'],
    'drake': ['eminem', 'marshall', 'drogon', 'eminem'],
    'day1': ['1/5/2018', '4/12/2019', '12/31/2019', '1/8/2019'],
    }
    df = pd.DataFrame(df)

    # Explicitly conveerting the columns to datetime (with which the package works)
    df['day'] = pd.to_datetime(df['day'])
    df['day1'] = pd.to_datetime(df['day1'])

    # Pass in the arguments to cal diff between two date columns
    check.calc_diff_with_holidays(df, 'day', 'day1', 'new_date')
    print(df)

    # Can also pass in custom business days as well as holidays
    check.calc_diff_with_holidays(df, 'day', 'day1', 'new_date', workdays=[MO, TU, WE, TH])
    print(df)

    # Add custom business days to the provided column
    check.add_bus_days_with_holidays(df, 'day', 'temp', 1)
    print(df)

To-Dos
^^^^^^^
* Add remaining methods.
* Add the tests.