Skip to content

Commit fa43a5b

Browse files
Clean up comments and improve focumentation in arrow_parser_wrapper.py
1 parent 75d6018 commit fa43a5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/io/parsers/arrow_parser_wrapper.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,11 @@ def read(self) -> DataFrame:
276276

277277
# Handle missing date values by checking for timestamp columns
278278
for i, field in enumerate(table.schema):
279-
if pa.types.is_timestamp(field.type): # Check if the column is a timestamp
280-
# Convert to a Pandas Series
279+
if pa.types.is_timestamp(field.type):
281280
column = table.column(i).to_pandas()
282281

283-
# Replace missing values with NaT
284282
column.fillna(pd.NaT, inplace=True)
285283

286-
# Update the column back to the table
287284
table = table.set_column(i, field.name, pa.array(column))
288285

289286
# Convert all pa.null() cols -> float64 (non nullable)

0 commit comments

Comments
 (0)