Skip to content

Commit 7d9703b

Browse files
authored
Deprecate ._data (#857)
* Deprecate call to dataframe._data
1 parent ca4a4fd commit 7d9703b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fastparquet/dataframe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def set_cats(values, i=i, col=col, **kwargs):
181181
views[col+'-catdef'] = x
182182

183183
# Patch our blocks with desired-length arrays. Kids: don't try this at home.
184-
mgr = df._data
184+
mgr = df._mgr
185185
for block in mgr.blocks:
186186
bvalues = block.values
187187
shape = list(bvalues.shape)
@@ -223,7 +223,7 @@ def set_cats(values, i=i, col=col, **kwargs):
223223
mgr.axes[-1] = index
224224

225225
# create views
226-
for block in df._data.blocks:
226+
for block in df._mgr.blocks:
227227
dtype = block.dtype
228228
inds = block.mgr_locs.indexer
229229
if isinstance(inds, slice):

fastparquet/test/test_dataframe.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def test_empty():
3434
assert len(views) == 5
3535

3636

37-
@pytest.mark.xfail(reason="df._data is going away")
3837
def test_empty_tz_utc():
3938
with warnings.catch_warnings():
4039
warnings.simplefilter("error")

0 commit comments

Comments
 (0)