Guest User

Untitled

a guest
Sep 4th, 2020
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import pandas as pd
  2. import requests
  3.  
  4. url = f'https://mops.twse.com.tw/server-java/FileDownLoad?step=9&functionName=show_file&filePath=/home/html/nas/t21/sii/&fileName=t21sc03_109_7.csv'
  5. data = pd.read_csv(url)
  6. print(data.iloc[828])
  7. print(len(data))
  8. data.dropna(axis=1,how='all')
  9. print(data.iloc[828])
  10. print(len(data))
Add Comment
Please, Sign In to add comment