packtworkshops / the-data-visualization-workshop Goto Github PK
View Code? Open in Web Editor NEWA New, Interactive Approach to Learning Data Visualization
License: MIT License
A New, Interactive Approach to Learning Data Visualization
License: MIT License
The import of dataset fails for a lot of provided notebooks in chapter 1 (OSError
in case of numpy usage, FileNotFoundError
in case of pandas usage). This is due to the fact, that the affected notebooks refer to the data as if it would reside in the same directory like in Exercise1.01):
dataset = np.genfromtxt('./Datasets/normal_distribution.csv' ... )
Adjust the relative path for file imports like already done in Exercise1.02 to
dataset = np.genfromtxt('../../Datasets/normal_distribution.csv' ... )
The introduction text of activity 1.02 is the same as for activity 1.01. Additionally it does not reflect the goal, as activity 1.02 uses the forestfires.csv
dataset (not the normal_distribution
dataset.
Adjust the text accordingly to the text of the book.
Hi! Chapter 02 with relative exercises and activities are missing! Cheers
The showcase in Exercise 1.02 throws a TypeError
(when applying hor_split = np.hsplit(dataset, (3))
) followed by a NameError
(when applying np.vsplit(hor_splits[0],(2))
. The first error is due to the fact, that the dataset has a shape of (24,8)
which can't be split evenly via np.hsplit(..., (3))
. The second error is due to the failure to assign hor_split
.
The simplest solution would be to reassign dataset
to the transpose of itself (dataset = dataset.T
).
While running your script (works well) however at the last line [12]
@interact(Stock=stock_names)
def get_stock_for(Stock='AAPL'):
stock = dataset[dataset['symbol'] == Stock][:25]
show(get_plot(stock))
I am getting the following error
AttributeError: unexpected attribute 'legend_label' to Line, possible attributes are js_event_callbacks, js_property_callbacks, line_alpha, line_cap, line_color, line_dash, line_dash_offset, line_join, line_width, name, subscribed_events, tags, x or y
I am using MacOS Mojave and Python 3.7.4
Thank you,
CA
Hello, I am trying to do exercise 3.03, visualizing the restaurant tips data in a stacked barchart.
However, I cannot find the raw tips.cvs data anywhere... ๐ค
The Jupyter notebook of Activity 7.03 can't be loaded and the following error is thrown:
Unreadable Notebook: .../Data-Visualization-with-Python/Chapter07/Activity7.03/Activity7.03.ipynb NotJSONError('Notebook does not appear to be JSON: \'{\\n "cells": [\\n {\\n "cell_type": "m...')
Find the malformed section and fix the notebook
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.