Advertisement
g96

Untitled

g96
Feb 18th, 2022
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. ....
  2.  
  3. df=pd.read_csv(os.path.join(directory,'1.csv'))
  4.  
  5.  
  6.  
  7. cols =['Order Qty (SL)','Confirmed Qty (SL)','Unconfirmed Qty (SL)','Cancelled Qty (SL)','Open Qty (SL)','Reserved Qty (SL)',
  8.  
  9.     'Fixed Qty (SL)','% Allocation (SL)','Delivered Qty (SL)','PGI Qty (SL)','Invoiced Qty (SL)',
  10.     'Net Unit Price','Confirmed Net Value (SL)','Dollars Shipped (SL)','% Shipped/Allocated (SL)']
  11.  
  12. print(*df.loc[:len(df) - 2, cols].replace(',', '', regex=True).apply(pd.to_numeric).dtypes.value_counts().items())
  13.  
  14. import sys
  15. sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement