@@ -170,7 +170,7 @@ number of possible values.
170170
171171 >> > df = pd.DataFrame({" cat" : pd.Categorical([" a" , " b" , " c" , " a" , " b" , " c" ])})
172172 >> > df.cat.dtype.categories
173- Index([' a' , ' b' , ' c' ], dtype = ' object ' )
173+ Index([' a' , ' b' , ' c' ], dtype = ' str ' )
174174 >> > df
175175 cat
176176 0 a
@@ -182,7 +182,7 @@ number of possible values.
182182 >> > table = pa.Table.from_pandas(df)
183183 >> > table
184184 pyarrow.Table
185- cat: dictionary< values= string , indices= int8, ordered= 0 >
185+ cat: dictionary< values= large_string , indices= int8, ordered= 0 >
186186 ----
187187 cat: [ -- dictionary:
188188 [" a" ," b" ," c" ] -- indices:
@@ -196,7 +196,7 @@ same categories of the Pandas DataFrame.
196196 >> > column = table[0 ]
197197 >> > chunk = column.chunk(0 )
198198 >> > chunk.dictionary
199- < pyarrow.lib.StringArray object at ... >
199+ < pyarrow.lib.LargeStringArray object at ... >
200200 [
201201 " a" ,
202202 " b" ,
@@ -224,7 +224,7 @@ use the ``datetime64[ns]`` type in Pandas and are converted to an Arrow
224224
225225 >> > df = pd.DataFrame({" datetime" : pd.date_range(" 2020-01-01T00:00:00Z" , freq = " h" , periods = 3 )})
226226 >> > df.dtypes
227- datetime datetime64[ns , UTC ]
227+ datetime datetime64[us , UTC ]
228228 dtype: object
229229 >> > df
230230 datetime
@@ -234,9 +234,9 @@ use the ``datetime64[ns]`` type in Pandas and are converted to an Arrow
234234 >> > table = pa.Table.from_pandas(df)
235235 >> > table
236236 pyarrow.Table
237- datetime: timestamp[ns , tz=UTC ]
237+ datetime: timestamp[us , tz=UTC ]
238238 ----
239- datetime: [[2020 - 01 - 01 00 :00 :00. 000000000Z , ... ,2020 - 01 - 01 02 :00 :00. 000000000Z ]]
239+ datetime: [[2020 - 01 - 01 00 :00 :00. 000000Z , 2020 - 0 1 - 0 1 0 1 : 00 : 00. 000000Z ,2020 - 01 - 01 02 :00 :00. 000000Z ]]
240240
241241 In this example the Pandas Timestamp is time zone aware
242242(``UTC `` on this case), and this information is used to create the Arrow
0 commit comments