File tree 2 files changed +20
-6
lines changed
third_party/bigframes_vendored/pandas/core
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,18 @@ def dtypes(self):
589
589
The result's index is the original DataFrame's columns. Columns
590
590
with mixed types aren't supported yet in BigQuery DataFrames.
591
591
592
+ **Examples:**
593
+
594
+ >>> import bigframes.pandas as bpd
595
+ >>> bpd.options.display.progress_bar = None
596
+
597
+ >>> df = bpd.DataFrame({'float': [1.0], 'int': [1], 'string': ['foo']})
598
+ >>> df.dtypes
599
+ float Float64
600
+ int Int64
601
+ string string[pyarrow]
602
+ dtype: object
603
+
592
604
Returns:
593
605
A *pandas* Series with the data type of each column.
594
606
"""
Original file line number Diff line number Diff line change @@ -119,13 +119,15 @@ def shape(self):
119
119
def dtype (self ):
120
120
"""
121
121
Return the dtype object of the underlying data.
122
- """
123
- raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
124
122
125
- @property
126
- def dtypes (self ):
127
- """
128
- Return the dtype object of the underlying data.
123
+ **Examples:**
124
+
125
+ >>> import bigframes.pandas as bpd
126
+ >>> bpd.options.display.progress_bar = None
127
+
128
+ >>> s = bpd.Series([1, 2, 3])
129
+ >>> s.dtype
130
+ Int64Dtype()
129
131
"""
130
132
raise NotImplementedError (constants .ABSTRACT_METHOD_ERROR_MESSAGE )
131
133
You can’t perform that action at this time.
0 commit comments