Articles with the tag « python » :

Python Dictdiffer - diff between two dictionaries

in «tip» by Michael Beard
Tags: , , , ,

Get a rational difference between two dictionaries

Dictdiffer is a helper module that helps you to diff and patch dictionaries.

Dictdiffer

from dictdiffer import diff, patch, swap, revert

first = {
    "title": "hello",
    "fork_count": 20,
    "stargazers": ["/users/20", "/users/30"],
    "settings": {
        "assignees": [100, 101, 201],
    }
}

second = {
    "title": "hellooo",
    "fork_count": 20,
    "stargazers": ["/users …

marshmallow: simplified object serialization

in «tip» by Michael Beard
Tags: , , , , , , , ,

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

Tip Description:

In short, marshmallow schemas can be used to:

  • Validate input data.
  • Deserialize input data to app-level objects.
  • Serialize app-level objects to primitive Python types. The …

Create interactive dashboards with Streamlit and Python

in «tip» by Michael Beard
Tags: , , , , , ,

In Data Visualization, Dashboard is the great Graphical User Interfaces that helps you to display the information in a highly interactive and informative way. It helps to visualize the key indicators and trends of the data.

Create Interactive Dashboards with Streamlit and Python

Streamlit

Streamlit is gaining popularity in Machine …