Advertisement
elena1234

convert data types in DataFrame in Python

May 7th, 2023
1,011
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | Source Code | 0 0
  1. df_sales = pd.read_csv("data_analytics_sales.csv",  parse_dates = ['TransactionDate'], low_memory=False,converters={'SapExtendedValue': decimal.Decimal})
  2. df_sales.head()
  3.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement