-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Term Entry - .create_distplot() - Plotly #5618
base: main
Are you sure you want to change the base?
Term Entry - .create_distplot() - Plotly #5618
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @danitellini, thank you for contributing to Codecademy Docs, the entry is nicely written! 😄
I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃
--- | ||
Title: '`.create_distplot()`' | ||
Description: '`.create_distplot()` creates interactive distribution plots combining histogram and KDE curves, ideal for visualization and comparing data distributions.' | ||
Subjects: | ||
- 'Data Science' | ||
- 'Data Visualization' | ||
Tags: | ||
- 'Histograms' | ||
- 'NumPy' | ||
- 'Plotly' | ||
- 'Python' | ||
- 'Seaborn' | ||
CatalogContent: | ||
- 'learn-python-3' | ||
- 'paths/computer-science' | ||
- 'paths/data-science' | ||
- 'paths/data-science-foundations' | ||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--- | |
Title: '`.create_distplot()`' | |
Description: '`.create_distplot()` creates interactive distribution plots combining histogram and KDE curves, ideal for visualization and comparing data distributions.' | |
Subjects: | |
- 'Data Science' | |
- 'Data Visualization' | |
Tags: | |
- 'Histograms' | |
- 'NumPy' | |
- 'Plotly' | |
- 'Python' | |
- 'Seaborn' | |
CatalogContent: | |
- 'learn-python-3' | |
- 'paths/computer-science' | |
- 'paths/data-science' | |
- 'paths/data-science-foundations' | |
--- | |
--- | |
Title: '.create_distplot()' | |
Description: 'Creates a distribution plot (histogram with a kernel density estimate) for visualizing the data distribution.' | |
Subjects: | |
- 'Data Science' | |
- 'Data Visualization' | |
Tags: | |
- 'Histograms' | |
- 'NumPy' | |
- 'Plotly' | |
- 'Python' | |
- 'Seaborn' | |
CatalogContent: | |
- 'learn-python-3' | |
- 'paths/computer-science' | |
--- |
- 'paths/data-science-foundations' | ||
--- | ||
|
||
The **`.create_distplot()`** function is part of Plotly's `.figure_factory` module. It is used to create distribution plots, which are visual representations that combine histograms and kernel density estimates (KDE) to display the distribution of a dataset. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The **`.create_distplot()`** function is part of Plotly's `.figure_factory` module. It is used to create distribution plots, which are visual representations that combine histograms and kernel density estimates (KDE) to display the distribution of a dataset. | |
The **`.create_distplot()`** function is part of Plotly's [`figure_factory`](https://www.codecademy.com/resources/docs/plotly/figure-factory) module. It creates distribution plots that combine histograms and kernel density estimates (KDE) to visually represent a dataset's distribution. |
fig = figure_factory.create_distplot( | ||
hist_data, | ||
group_labels, | ||
(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fig = figure_factory.create_distplot( | |
hist_data, | |
group_labels, | |
(...) | |
fig = figure_factory.create_distplot( hist_data, group_labels, ...) |
- `hist_data`: Contains numerical data for each dataset, entered as a list of lists or arrays. | ||
- `group_labels`: List of strings corresponding to each dataset in `hist_data`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `hist_data`: Contains numerical data for each dataset, entered as a list of lists or arrays. | |
- `group_labels`: List of strings corresponding to each dataset in `hist_data`. | |
- `hist_data`: A list of datasets to plot. Each dataset is represented as a separate group in the distribution plot. | |
- `group_labels`: List of strings corresponding to each dataset in `hist_data`. These labels are used to distinguish the different groups in the plot. |
|
||
This is a basic distribution plot that generates 2 datasets with normal distributions using default settings: | ||
|
||
```python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```python | |
```py |
Description
Summary of Changes:
Topic: Plotly - Figure_Factory -
.create_distplot()
functionFiles created:
docs/content/plotly/concepts/figure-factory/terms/create-distplot/create-distplot.md
Files added: 'media/distplot-example.png
Description: Created a **Term Entry** for the
.create_distplot()function of the
figure_factory` module.Teaching is a great way to practice and learn.
Issue Solved
Closes #4723
Type of Change
Editing an existing entry (fixing a typo, bug, issues, etc)Updating the documentationChecklist
main
branch.Issues Solved
section.