Skip to content

Commit

Permalink
Convert Half Bathrooms column to nullable integer type
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectly-preserved-pie committed Oct 13, 2024
1 parent 8c77f7e commit 27d5219
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buy_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
# Final pass at converting datetime columns to the correct format
df_combined['listed_date'] = pd.to_datetime(df_combined['listed_date'], errors='raise', format='mixed')
df_combined['date_processed'] = pd.to_datetime(df_combined['date_processed'], errors='raise', format='mixed')
df_combined['Half Bathrooms'] = df_combined['Half Bathrooms'].astype('Int8')

# Save the new combined dataframe
try:
Expand Down

0 comments on commit 27d5219

Please sign in to comment.