Skip to content

Commit

Permalink
fix: Re-establish support for Python 3.9
Browse files Browse the repository at this point in the history
Closes: #69
  • Loading branch information
andreas-vester authored Oct 25, 2024
1 parent f2723ed commit 9366c50
Show file tree
Hide file tree
Showing 4 changed files with 220 additions and 250 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [0.2.21] - 2024-10-25
### Fixed
- Re-established support for Python 3.9 [GH#69](https://github.com/andreas-vester/df2img/issues/69).

## [0.2.20] - 2024-10-16
### Changed
- Transition to `uv`.
Expand Down Expand Up @@ -173,7 +177,8 @@ For more information about ``plotly``'s renderers, visit the respective website
- Possibility to change column width and row height.
- Possibility to change font size.

[Unreleased]: https://github.com/andreas-vester/df2img/compare/v0.2.20...HEAD
[Unreleased]: https://github.com/andreas-vester/df2img/compare/v0.2.21...HEAD
[0.2.21]: https://github.com/andreas-vester/df2img/compare/v0.2.20...v0.2.21
[0.2.20]: https://github.com/andreas-vester/df2img/compare/v0.2.19...v0.2.20
[0.2.19]: https://github.com/andreas-vester/df2img/compare/v0.2.18...v0.2.19
[0.2.18]: https://github.com/andreas-vester/df2img/compare/v0.2.17...v0.2.18
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "df2img"
version = "0.2.20"
version = "0.2.21"
description = "Save a Pandas DataFrame as image"
authors = [
{name = "Andreas Vester", email = "[email protected]"},
Expand Down Expand Up @@ -37,7 +37,6 @@ dev-dependencies = [
"mkdocs-material",
"mkdocstrings[python]",
"mypy",
"nox",
"pre-commit",
"pytest",
"pytest-cov",
Expand Down
11 changes: 8 additions & 3 deletions src/df2img/main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
"""Collection of functions to plot and save a `pd.DataFrame`."""

from __future__ import annotations

from math import floor
from pathlib import Path
from typing import Any
from typing import TYPE_CHECKING, Any

import pandas as pd
import plotly

if TYPE_CHECKING:
from pathlib import Path

import pandas as pd


def plot_dataframe(
df: pd.Series | pd.DataFrame,
Expand Down
Loading

0 comments on commit 9366c50

Please sign in to comment.