Skip to content
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

bug: AssertionError when providing 'int' for some input arguments #1

Closed
andreas-vester opened this issue Oct 1, 2021 · 0 comments · Fixed by #2
Closed

bug: AssertionError when providing 'int' for some input arguments #1

andreas-vester opened this issue Oct 1, 2021 · 0 comments · Fixed by #2
Assignees
Labels
bug Something isn't working

Comments

@andreas-vester
Copy link
Owner

When providing regular int for col_width, row_height`, or font_size, the code breaks with an AssertionError``.

def df2img(
df: pd.DataFrame,
file: Optional[Path] = None,
show_fig: bool = False,
title: str = None,
title_loc: Literal["center", "left", "right"] = "center",
header_rows: int = 1,
header_cols: int = 1,
header_color: str = "black",
header_bgcolor: str = "white",
row_bgcolors: List[str] = None,
edge_color: str = "gray",
col_width: float = 3.0,
row_height: float = 0.625,
font_size: float = 14.0,
) -> (plt.figure, plt.table):

@andreas-vester andreas-vester added the bug Something isn't working label Oct 1, 2021
@andreas-vester andreas-vester self-assigned this Oct 1, 2021
andreas-vester added a commit that referenced this issue Oct 2, 2021
When input arguments `col_width`, `row_height`, or `font_size` have been
assigned an `int`, an `AssertionError` had been raised. This has been
fixed.

Closes #1
andreas-vester added a commit that referenced this issue Oct 2, 2021
When input arguments `col_width`, `row_height`, or `font_size` have been
assigned an `int`, an `AssertionError` had been raised. This has been
fixed.

Closes #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant