djay / covidthailand

Thailand Covid testing and case data gathered and combined from various sources for others to download or view
126 stars 15 forks source link

Add trend indicator to province tables #166

Closed modiholodri closed 2 years ago

modiholodri commented 2 years ago

cases_prov_top_all

netlify[bot] commented 2 years ago

โœ”๏ธ Deploy Preview for practical-ritchie-cca141 ready!

๐Ÿ”จ Explore the source changes: 6a51529bae4dab2a70fd410fa2919fbf9de2b966

๐Ÿ” Inspect the deploy log: https://app.netlify.com/sites/practical-ritchie-cca141/deploys/6181540432ab5c0008408775

๐Ÿ˜Ž Browse the preview: https://deploy-preview-166--practical-ritchie-cca141.netlify.app

modiholodri commented 2 years ago

To get the trend... reg = reg_cases.rolling(14).mean() ((reg - reg.shift(14)) / reg).iloc[-1]

modiholodri commented 2 years ago
Comment has been resolved by Dylan Jay Not sure why I cannot see the trend indicators. (Just testing Netlify)
Browser metadata ``` Path: / Browser: Edge 94.0.992.38 on Windows 10 Viewport: 1536 x 780 @1.25x Language: en-US Cookies: Enabled ``` [Open in BrowserStack](https://www.browserstack.com/user/try-live?url=https%3A%2F%2Fdeploy-preview-166--practical-ritchie-cca141.netlify.app%2F&os=Windows&os_version=10&browser=Edge&browser_version=94.0&resolution=1536x780&speed=1&start=true&ref=netlify-source)
[Open Deploy Preview](https://deploy-preview-166--practical-ritchie-cca141.netlify.app/) ยท [Mark as Unresolved](https://app.netlify.com/cdp/resolve?deployID=6181540432ab5c0008408775&commentID=6183982695ed4da331c0c346&resolution=unresolved)