Posts by Core • 113 points
13 posts
-
0
votes1
answer63
viewsQ: loop in json in flask using render_template
Hello, I have the following json: {"movies": "[{\"title\":\"Hercules\",\"rep\":99.96},{\"title\":\"In the Dark\",\"rep\":98.12},{\"title\":\"Titas\",\"rep\":96.61}]"} and would like to scroll…
-
0
votes0
answers49
viewsQ: Deprecationwarning in Matplotlib
Hello, I am using the version "pandas==1.0.4" and in my code below has generated the following Warning: MatplotlibDeprecationWarning: Passing the minor parameter of set_xticks() positionally is…
-
0
votes2
answers100
viewsQ: Dataframe row and column organization
Hello, I have the following situation: import pandas as pd import numpy as np l=[] l.append(('Mod1',0,70)) l.append(('Mod1',1,88)) l.append(('Mod1',2,97)) l.append(('Mod2',0,44))…
-
0
votes1
answer34
viewsQ: Graphic multindex pandas
Hello, I have the following dataframe: Where I have a period of 3 years. I would like to be filling a chart of agupado VALUE per month and year, I did as follows, but it did not work.…
-
0
votes1
answer794
viewsQ: Replace certain values by media in a pandas Dataframe
Hello, I have a Dataframe as image below. I would like to replace the Nan values of the QTDVENDADIARIA column with the media of the two previous records (40+27/2), in the same way the price column…
-
0
votes1
answer62
viewsQ: Minimum value of a list within another python list
Hello. I have a situation I managed to solve by looping. I would like to know if there is any way to simplify what I did, using Arabic or other language resource. I have a list and within it another…
-
0
votes1
answer249
viewsQ: How to inform parameters to the parent class initializer with Python?
Hello, I’m making inheritance in python and I’m encountering the following error: Typeerror: __init__() takes Exactly 2 positional Arguments (4 Given) class A(): def __init__(self,a,b): self.a = a…
-
3
votes2
answers389
viewsQ: Python, matrices/vectors and dictionaries
Hello, I’m new to python and I don’t know how it should be done: 1) I have a 2x6 matrix generated by random numbers, for example: matriz = [11, 4, 50, 8, 9, 78] [10, 33, 44, 57, 80, 90] What I need…
-
2
votes3
answers679
viewsQ: Entity Relationship Framework 1:N
Hello. I have the following classes... Sales class: [Table("venda")] public class Vendas { public Vendas() { ItensVendas= new List<ItensVendas>(); } [Key] public int Id { get; set; } public…
-
1
votes1
answer272
viewsQ: Angularjs reading JSON positions
I have a JSON of states and cities as follows: { "estados": [ { "sigla": "AC", "nome": "Acre", "cidades": [ "Acrelândia", "Assis Brasil", "Brasiléia", "Bujari", "Capixaba", "Tarauacá", "Xapuri" ] },…
-
0
votes2
answers78
viewsQ: Angular validation
I can’t use angular validations, ng-disable, ng-show, none of them work. By console index.html <!DOCTYPE html> <html ng-app="myApp"> <head> <title></title> <meta…
-
1
votes2
answers434
viewsQ: Routes at Angular 1.6
I’m an angled beginner. My routes don’t load in ng-view. When I click on the link my url looks like this http://localhost:56845/Index.html#Add and nothing happens. No error is displayed on console.…
-
1
votes1
answer279
viewsQ: ASP NET MVC with Jquery
I made an ajax request, but it does not call the controller, when debugging javascript never falls in Success and the console appears Error in XML processing. Controller: [HttpPost]…