From de29ddfbc207b1a3fabbd468e7144561a6dd0003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 27 Dec 2022 21:26:40 +0100 Subject: [PATCH] Plotly --- README.md | 4 ++-- index.html | 4 ++-- pdf/index_for_pdf.html | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ff57f86..df4326d 100644 --- a/README.md +++ b/README.md @@ -3410,7 +3410,7 @@ from plotly.express import line
.write_html/json/image('') # Also:
.show() ``` -#### Covid deaths by continent: +#### Displays a line chart of total coronavirus deaths per million grouped by continent: ![Covid Deaths](web/covid_deaths.png)
@@ -3429,7 +3429,7 @@ df = df.rename({'date': 'Date', 'Continent_Name': 'Continent'}, axis='columns') line(df, x='Date', y='Total Deaths per Million', color='Continent').show() ``` -#### Confirmed covid cases, Dow Jones, Gold, and Bitcoin price: +#### Displays a multi-axis line chart of total coronavirus cases and changes in prices of Bitcoin, Dow Jones and gold: ![Covid Cases](web/covid_cases.png)
diff --git a/index.html b/index.html index d23874b..a8d41ea 100644 --- a/index.html +++ b/index.html @@ -2779,7 +2779,7 @@ c 7 8 <Figure>.write_html/json/image('<path>') # Also: <Figure>.show() -

Covid deaths by continent:

covid = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv',
+

Displays a line chart of total coronavirus deaths per million grouped by continent:

covid = pd.read_csv('https://covid.ourworldindata.org/data/owid-covid-data.csv',
                     usecols=['iso_code', 'date', 'total_deaths', 'population'])
 continents = pd.read_csv('https://gist.githubusercontent.com/stevewithington/20a69c0b6d2ff'
                          '846ea5d35e5fc47f26c/raw/country-and-continent-codes-list-csv.csv',
@@ -2794,7 +2794,7 @@ line(df, x='Date', y=
 
 
 
-

Confirmed covid cases, Dow Jones, Gold, and Bitcoin price:

import pandas as pd
+

Displays a multi-axis line chart of total coronavirus cases and changes in prices of Bitcoin, Dow Jones and gold:

import pandas as pd
 import plotly.graph_objects as go
 
 def main():
diff --git a/pdf/index_for_pdf.html b/pdf/index_for_pdf.html
index 2e40588..6c445c0 100644
--- a/pdf/index_for_pdf.html
+++ b/pdf/index_for_pdf.html
@@ -32,7 +32,7 @@
 copy function, 15
coroutine, 33
counter, 2, 4, 12, 17
-csv, 26, 34, 46, 47
+csv, 26, 34, 46, 47
curses module, 33, 34
cython, 49

D

@@ -96,12 +96,12 @@ operator module, 31
os commands, 23-25, 34

P

-

pandas library, 44-48
+

pandas library, 44-48
partial function, 12, 20
paths, 23-24, 34
pickle module, 25
pillow library, 39-40
-plotting, 34, 46, 47-48
+plotting, 34, 46, 47-48
print function, 22
profiling, 36-37
progress bar, 34
@@ -117,7 +117,7 @@ regular expressions, 5-6
requests library, 35, 36

S

-

scraping, 35, 43, 46, 47-48
+

scraping, 35, 43, 46, 47-48
sequence, 4, 18-19
sets, 2, 4, 11, 19, 21, 31
shell commands, 25
@@ -126,7 +126,7 @@ sortable, 1, 16
splat operator, 10-11
sql, 27, 46
-statistics, 7, 37-38, 44-48
+statistics, 7, 37-38, 44-48
strings, 4-7, 14
struct module, 28-29
subprocess module, 25