Skip to content

Commit 40c371e

Browse files
fix: Re-established support for Python 3.9
Closes: #69
1 parent f2723ed commit 40c371e

File tree

4 files changed

+216
-249
lines changed

4 files changed

+216
-249
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

66
## [Unreleased]
7+
### Fixed
8+
- Re-established support for Python 3.9 [GH#69](https://github.com/andreas-vester/df2img/issues/69).
79

810
## [0.2.20] - 2024-10-16
911
### Changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "df2img"
3-
version = "0.2.20"
3+
version = "0.2.21"
44
description = "Save a Pandas DataFrame as image"
55
authors = [
66
{name = "Andreas Vester", email = "[email protected]"},
@@ -37,7 +37,6 @@ dev-dependencies = [
3737
"mkdocs-material",
3838
"mkdocstrings[python]",
3939
"mypy",
40-
"nox",
4140
"pre-commit",
4241
"pytest",
4342
"pytest-cov",

src/df2img/main.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
"""Collection of functions to plot and save a `pd.DataFrame`."""
22

3+
from __future__ import annotations
4+
35
from math import floor
4-
from pathlib import Path
5-
from typing import Any
6+
from typing import TYPE_CHECKING, Any
67

7-
import pandas as pd
88
import plotly
99

10+
if TYPE_CHECKING:
11+
from pathlib import Path
12+
13+
import pandas as pd
14+
1015

1116
def plot_dataframe(
1217
df: pd.Series | pd.DataFrame,

0 commit comments

Comments
 (0)