Skip to content

Commit b45a47d

Browse files
committed
minor syntax changes
1 parent 0329d24 commit b45a47d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/whatsnew/v1.0.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ Other enhancements
207207
- The ``partition_cols`` argument in :meth:`DataFrame.to_parquet` now accepts a string (:issue:`27117`)
208208
- :func:`to_parquet` now appropriately handles the ``schema`` argument for user defined schemas in the pyarrow engine. (:issue: `30270`)
209209
- DataFrame constructor preserve `ExtensionArray` dtype with `ExtensionArray` (:issue:`11363`)
210-
- The pandas.datetime submodule is now deprecated. Import datetime directly instead(:issue:`30296`)
210+
- The ``pandas.datetime`` submodule is now deprecated. Import ``datetime`` directly instead(:issue:`30296`)
211211

212212

213213
Build Changes

pandas/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class SparseDataFrame:
248248
class SparseSeries:
249249
pass
250250

251-
class Datetime:
251+
class __Datetime:
252252
def __init__(self):
253253
from datetime import datetime
254254
import warnings
@@ -269,7 +269,7 @@ def __getattr__(self, item):
269269
except AttributeError:
270270
raise AttributeError(f"module datetime has no attribute {item}")
271271

272-
datetime = Datetime()
272+
datetime = __Datetime()
273273

274274

275275
# module level doc-string

0 commit comments

Comments
 (0)