This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public_identifier": "eden-marco", | |
"profile_pic_url": "https://s3.us-west-000.backblazeb2.com/proxycurl/person/eden-marco/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20230724%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20230724T012638Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=8d1f5d80d376442e9e101280e6b1eeff9084be53ffa73aa78f2bb074087899ae", | |
"background_cover_image_url": null, | |
"first_name": "Eden", | |
"last_name": "Marco", | |
"full_name": "Eden Marco", | |
"follower_count": null, | |
"occupation": "Customer Engineer at Google", | |
"headline": "Customer Engineer @ Google Cloud | Best-selling Udemy Instructor | Backend dev with passion for GenAI", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After two numbers are inputed, the program is supposed to multiply them and output in the third row of dataframe. | |
However, program goes to infinite loop. Also, multiplication should not truncate or round up/down the double numbers. | |
Please advise how to solve it. Thank you | |
library(shiny) | |
library(rhandsontable) | |
create_df <- function(){ | |
GM<-data.frame(matrix(0.0, ncol = 5, nrow = 3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I created a simple table using rhandsotable library and no matter how I format it, | |
number always gets rounded down or up to closest integer. | |
For example, if I type in 1.02, the result shown is 1. For 3.05, result shown is 3. | |
Please kindly advise how to solve this issue. Thank you. | |
library(shiny) | |
library(rhandsontable) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODELS.PY | |
from django.db import models | |
from django.forms import ModelForm | |
class Assumptions(models.Model): | |
Worst = models.FloatField(null=True, blank=True, default=None) | |
Base = models.FloatField(null=True, blank=True, default=None) | |
Best = models.FloatField(null=True, blank=True, default=None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIEWS.PY | |
from django.shortcuts import render | |
from .forms import modelformset_factory, AssumptionsForm | |
from .models import Assumptions | |
model_names = ['A', 'B'] | |
def get_assumptions(request): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIEWS.PY | |
from django.shortcuts import render | |
from .forms import modelformset_factory, AssumptionsForm | |
from .models import Assumptions | |
def get_assumptions(request): | |
AssumptionsFormset = modelformset_factory( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIEWS.PY | |
from django.shortcuts import render | |
from .forms import modelformset_factory, AssumptionsForm | |
from .models import Assumptions | |
model_names = ['A', 'B', 'C', 'D', 'E', 'F', 'G'] | |
def get_assumptions(request): |