Implements constrained zooming of an image put onto an HTML5 Canvas.
To get use MongoDB from Tableau, start a mongosqld instance...
mongosqld --mongo-uri "mongodb://<host>:<port>/?connect=direct"
Then from Tableau, select Servers->MongoDB BI Connector with 127.0.0.1 and 3307 as connection details.
An alteration to http://bl.ocks.org/mbostock/1667367 that adds a similar vertical zoom axes to the figure.
This is a recipe for making box plots overlaying histograms in Tableau version 9.3. It largely borrows from http://vizpainter.com/some-tableau-tips-options-for-box-and-whisker/ and http://vizdiff.blogspot.com/2015/11/overlaying-histogram-with-box-and.html.
-
Create a fixed continuous variable for number of objects per dimension. For example, the number of unique assignments per user:
[Assignments Per User] = {FIXED [Userid] : COUNTD([Assignmentid])}
-
Set the variable's Default Aggregation to COUNT.
-
Drag the variable from Measures to the columns shelf.
-
Set it to "Dimension" instead of CNT().
import logging | |
from collections.abc import Iterable | |
def is_container(obj): | |
return isinstance(obj, Iterable) and not isinstance(obj, (str, bytes, bytearray)) | |
# https://stackoverflow.com/a/54000999/394430 | |
def walk_collection(obj, callback=None, _path: list=[], **kwargs): | |
"""Walk an arbitrarily nested structure of lists and/or dicts such as would be made when | |
reading JSON as an object. Walking is performed in a depth-first search manner. |
import contextlib | |
from functools import partial | |
from sklearn.pipeline import Pipeline | |
@contextlib.contextmanager | |
def intermediate_transforms(pipe: Pipeline, keys: list=[], bypass_list: list=[]): | |
"""Allows for the retrieval of all or parts of the transformations in a | |
sklearn Pipeline, as well as the ability to dynamically bypass parts of | |
the pipeline. |
From an open Jupyter Notebook homework assignment, select "Coursera" to take you to the home page. Make a new notebook and fill it with the following and excute the cell with:
%%bash
tar cvfz hw.tar.gz .
This may take a little while to run depending on the packages. Select "Coursera" again to take you to the Home directory. Check the hw.tar.gz file and then Download. After the file is downloaded, delete it.