learn-python/contrib/plotting-visualization/seaborn-intro.md

42 wiersze
1.6 KiB
Markdown
Czysty Zwykły widok Historia

2024-05-31 12:42:32 +00:00
Seaborn is a Python data visualization library based on Matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics.
2024-05-31 12:34:45 +00:00
2024-05-31 12:42:50 +00:00
## Seaborn Installation
2024-05-31 12:42:32 +00:00
Before installing Matplotlib, ensure you have Python installed on your system. You can download and install Python from the [official Python website](https://www.python.org/).
2024-05-31 12:45:06 +00:00
2024-05-31 12:49:06 +00:00
Below are the steps to install and setup Seaborn:
1. Open your terminal or command prompt and run the following command to install Seaborn using `pip`:
2024-05-31 12:45:06 +00:00
```bash
pip install seaborn
```
2024-05-31 12:49:06 +00:00
2. The basic invocation of `pip` will install seaborn and, if necessary, its mandatory dependencies. It is possible to include optional dependencies that give access to a few advanced features:
```bash
pip install seaborn[stats]
```
3. The library is also included as part of the Anaconda distribution, and it can be installed with `conda`:
```bash
conda install seaborn
```
4. As the main Anaconda repository can be slow to add new releases, you may prefer using the conda-forge channel:
```bash
conda install seaborn -c conda-forge
```
2024-05-31 12:59:50 +00:00
## Dependencies
### Supported Python versions
- Python 3.8+
### Mandatory Dependencies
- [numpy](https://numpy.org/)
- [pandas](https://pandas.pydata.org/)
- [matplotlib](https://matplotlib.org/)
### Optional Dependencies
- [statsmodels](https://www.statsmodels.org/stable/index.html) for advanced regression plots
- [scipy](https://scipy.org/) for clustering matrices and some advanced options
- [fastcluster](https://pypi.org/project/fastcluster/) for faster clustering of large matrices