Comments (6)
- Python uses snake_case for variable names
from cost-reporter.
- List comprehension is not needed here
bottom = [0] * days
from cost-reporter.
- Instead of using a separate index variable (
x
)
cost-reporter/cost-reporter/src/stacked_bar.py
Lines 30 to 39 in f15d3fd
it can be done withenumerate()
for idx, label in enumerate(all_bars.keys()):
# There is nothing below the first bar, skip it for the first iteration
if idx > 0:
print(previous_bar)
bottom = np.add(bottom, previous_bar).tolist()
plt.bar(r, all_bars[label], bottom=bottom, color=COLORS[idx], edgecolor=edgecolor, width=barWidth, label=label)
previous_bar = all_bars[label]
from cost-reporter.
- if this should be really logged, then use proper logging
from cost-reporter.
- it is always better to use
pathlib
module to define a filesystem path to make it OS independent
from cost-reporter.
done, thanks
from cost-reporter.
Related Issues (12)
- Improve SAM template HOT 4
- Add type hinting
- Fix and improve flake8 findings HOT 1
- Implement black as code formatter
- Improve slack_sender.py HOT 1
- Improve lambda_function.py HOT 8
- ClientError: An error occurred (AccessDeniedException) when calling the GetParameter operation HOT 1
- Readme needs improvment
- Slack token Parameter is not created in SSM
- GitHub Actions for Running Tests
- Using A Test Runner
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cost-reporter.