Skip to content

Commit 29ffc27

Browse files
authored
Deprecate Pandas builder (#6730)
1 parent f90b65d commit 29ffc27

File tree

1 file changed

+5
-0
lines changed
  • src/datasets/packaged_modules/pandas

1 file changed

+5
-0
lines changed

src/datasets/packaged_modules/pandas/pandas.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import itertools
2+
import warnings
23
from dataclasses import dataclass
34
from typing import Optional
45

@@ -20,6 +21,10 @@ class Pandas(datasets.ArrowBasedBuilder):
2021
BUILDER_CONFIG_CLASS = PandasConfig
2122

2223
def _info(self):
24+
warnings.warn(
25+
"The Pandas builder is deprecated and will be removed in the next major version of datasets.",
26+
FutureWarning,
27+
)
2328
return datasets.DatasetInfo(features=self.config.features)
2429

2530
def _split_generators(self, dl_manager):

0 commit comments

Comments
 (0)