Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/i2mint/tabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sana-dibe committed Jan 24, 2024
2 parents 6e2d4ef + 3ba3cf0 commit 0ee6951
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tabled/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"""
from tabled.html import get_tables_from_url
from tabled.base import (
DfLocalFileReader,
DfFiles,
DfLocalFileReader, # will be deprecated
KeyFuncReader,
dflt_ext_mapping,
df_from_data_according_to_key,
Expand Down
5 changes: 3 additions & 2 deletions tabled/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_protocol(url: str):
# TODO: Better separate Reader, and add DfStore to make a writer.


class DfLocalFileReader(Files):
class DfFiles(Files):
"""A key-value store providing values as pandas.DataFrames"""

def __init__(self, path_format, mapping=dflt_ext_mapping):
Expand All @@ -177,4 +177,5 @@ def __delitem__(self, k):
raise NotImplementedError('This is a reader: No delete operation allowed')


DfReader = DfLocalFileReader # alias for back-compatibility: TODO: Issue warning on use
DfReader = DfFiles # alias for back-compatibility: TODO: Issue warning on use
DfLocalFileReader = DfFiles # back-compatibility: TODO: Issue warning on use

0 comments on commit 0ee6951

Please sign in to comment.