This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import quotespy.graphics.graphics as g | |
| custom_settings = { | |
| "font_family": "Inkfree.ttf", | |
| "font_size": 200, | |
| "size": [3840, 2160], | |
| "color_scheme": ["#000000", "#ffffff"], | |
| "wrap_limit": 32, | |
| "margin_bottom": 250, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mistakes] | |
| Some mistakes and, dare I say, failures may lead to results you had never thought you could achieve | |
| [strange days] | |
| Say goodbye to the silence, we can dance to the sirens |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mistakes": "Some mistakes and, dare I say, failures may lead to results you had never thought you could achieve", | |
| "strange_days": "Say goodbye to the silence, we can dance to the sirens" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import quotespy.graphics.graphics as g | |
| graphic_info = { | |
| "title": "strange_days", | |
| "text": "Say goodbye to the silence, we can dance to the sirens" | |
| } | |
| custom_settings = { | |
| "font_family": "Inkfree.ttf", | |
| "font_size": 250, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import quotespy.graphics.graphics as g | |
| graphic_info = { | |
| "title": "strange_days", | |
| "text": "Say goodbye to the silence, we can dance to the sirens" | |
| } | |
| g.create_graphic(graphic_info, {}, default_settings_format="lyrics") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| options = ["terrible", "bad", "so-so", "good", "excellent"] | |
| map_options = [1, 2, 3, 4, 5] | |
| evaluations = create_evaluations(options, map_options, 200) | |
| plot_column_chart( | |
| evaluations, | |
| options, | |
| "Evaluations' frequency", | |
| ["Evaluations", None], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| work_hours = pd.Series(np.random.random_sample(200,)) * 72 + 8 | |
| work_hours_binned = bin_work_hours(work_hours) | |
| plot_histogram( | |
| work_hours_binned, | |
| 10, | |
| "Work Week Hours binned", | |
| ["Work week hours", None] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ages = pd.Series(np.random.randint(low=0, high=99, size=200)) | |
| ages_binned = bin_ages(ages) | |
| plot_histogram( | |
| ages_binned, | |
| 10, | |
| "Ages binned", | |
| ["Ages", None] | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import numpy as np | |
| import plotly.express as px | |
| from typing import List, Union | |
| def create_evaluations( | |
| categories: List[str], | |
| mapping_values: List[str], | |
| length: int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import numpy as np | |
| import plotly.express as px | |
| from typing import List, Union | |
| def bin_work_hours(work_hours_series: pd.Series) -> pd.Series: | |
| work_hours_labels = [f"[{i}, {i+8})" for i in range(8, 73, 8)] | |
| work_hours_bins = pd.IntervalIndex.from_tuples( |