- add path to sys.path
- pandas.concat
This commit is contained in:
@@ -1 +1,4 @@
|
||||
import os
|
||||
import sys
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
from coronaflask.app import app as application
|
||||
|
||||
@@ -9,6 +9,8 @@ import mpld3
|
||||
import requests
|
||||
import io
|
||||
|
||||
pandas.set_option('display.max_rows', 500)
|
||||
|
||||
|
||||
class Plots:
|
||||
@staticmethod
|
||||
@@ -111,7 +113,7 @@ class Corona:
|
||||
w['Country/Region'] = 'World'
|
||||
w['Lat'] = 0
|
||||
w['Long'] = 0
|
||||
return p.append(w)
|
||||
return pandas.concat((p, pandas.DataFrame(w).T))
|
||||
|
||||
@staticmethod
|
||||
def plot_series(fig, ax, dates_number, dates_obj, cum, llabel=None, rlabel=None):
|
||||
|
||||
5
setup.py
5
setup.py
@@ -1,4 +1,3 @@
|
||||
import os
|
||||
import setuptools
|
||||
|
||||
with open('README.md', 'r') as fh:
|
||||
@@ -6,7 +5,7 @@ with open('README.md', 'r') as fh:
|
||||
|
||||
setuptools.setup(
|
||||
name='coronaflask',
|
||||
version='2022.1.1',
|
||||
version='2022.5.0',
|
||||
author='Wim Pomp',
|
||||
author_email='wimpomp@gmail',
|
||||
description='Flask for a corona graph plotting website.',
|
||||
@@ -21,6 +20,4 @@ setuptools.setup(
|
||||
],
|
||||
python_requires='>=3.8',
|
||||
install_requires=['waitress', 'flask', 'markupsafe', 'pandas', 'numpy', 'matplotlib', 'requests', 'mpld3'],
|
||||
scripts=[os.path.join('bin', script) for script in
|
||||
os.listdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bin'))],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user