Skip to content

Commit

Permalink
use warnings instead of logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Bielecki committed Oct 12, 2023
1 parent e102281 commit 94a53ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pdtable/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
`ExtensionArray`. This option was discarded early due to performance concerns, but might be viable
and would the be preferable to the chosen approach.
"""
import logging
from warnings import warn

import pandas as pd
Expand All @@ -60,9 +59,6 @@
_TABLE_INFO_FIELD_NAME = "_table_data"


logger = logging.getLogger(__name__)


class UnknownOperationError(Exception):
pass

Expand Down Expand Up @@ -249,7 +245,7 @@ def make_table_dataframe(
if col in unit_map:
columns[col] = ColumnMetadata(unit_map[col])
else:
logger.warning(f'Missing unit for column "{col}".')
warnings.warn(f'Missing unit for column "{col}".')

table_info = ComplementaryTableInfo(table_metadata=table_metadata, columns=columns)
df = TableDataFrame.from_table_info(
Expand Down

0 comments on commit 94a53ae

Please sign in to comment.