Categories
Development

Pandas Pivot over a List in DataFrame

I need to pivot a pandas dataframe given a “list of components”. The idea is to create 1 row per component (item of the list). The dataframe columns looks like this Receipt Items Receipt A [id1, id2, id3, id4] Receipt B [id4, id5] Receipt C [id6, id7,id8] What I need to obtain is a row […]

Categories
Development

How to create PHP Dynamic / Live Multi Series Chart with CanvasJS

I’m trying to plot a multi-line graph with data from mysql. the query from mysql is encoded to JSON format. My question is: how do i do this? how do I select the data (date,sensorName,sensorValue) and plot it? This is my JSON array: [{“ID”:6,”Date”:”2020-01-24 07:35:46″,”sensorName”:”sensor 1″,”sensorValue”:213},{“ID”:7,”Date”:”2020-01-24 07:35:46″,”sensorName”:”sensor 1″,”sensorValue”:433},{“ID”:8,”Date”:”2020-01-24 07:35:46″,”sensorName”:”sensor 2″,”sensorValue”:45},{“ID”:9,”Date”:”2020-01-24 07:35:46″,”sensorName”:”sensor 3″,”sensorValue”:54}] Each sensor (sensor […]

Categories
Development

Bash script to sort rows in a csv file

I have a bunch of rows and each field in the row has a header identifying that field. Currently the file is just a csv, and although the first few fields would line up when put into excel, the rest of the row becomes misaligned due to some rows not having some of the fields […]

Categories
Development

R: boxplot: draw lines between each subject in case of repeated measurements

I have data where I have measurements of same subjects on 4 different stages. My goal is to make one graph on which there is both a boxplot, as well as the point of each subject with a line connecting each subject between each stage. The end result would be to combine both the graph […]

Categories
Development

R: boxplot: draw lines between each subject in case of repeated measurements

I have data where I have measurements of same subjects on 4 different stages. My goal is to make one graph on which there is both a boxplot, as well as the point of each subject with a line connecting each subject between each stage. The end result would be to combine both the graph […]

Categories
Development

R: boxplot: draw lines between each subject in case of repeated measurements

I have data where I have measurements of same subjects on 4 different stages. My goal is to make one graph on which there is both a boxplot, as well as the point of each subject with a line connecting each subject between each stage. The end result would be to combine both the graph […]

Categories
Development

R: boxplot: draw lines between each subject in case of repeated measurements

I have data where I have measurements of same subjects on 4 different stages. My goal is to make one graph on which there is both a boxplot, as well as the point of each subject with a line connecting each subject between each stage. The end result would be to combine both the graph […]

Categories
Development

particular title(fetched from api) using searchview?

I want something like this–> Required….. so the thing is ,what I exactly want is when user type particular topic name(if present) in searchview it should able give suggestions and if found it should open that topic activity (just like Facebook,instagram,…etc searches)..and those title are coming from api(which I have successfully displayed in other activities)..like […]

Categories
Development

Consuming a REST API angular 8

I have a rest API at: https://back-end-gubee.herokuapp.com/service It returns me three objects, these have attributes and two object lists internally. [{“id”:20,”name”:”Gubee Fretes”,”description”:”Ferramenta para gestão e calculo de fretes”,”active”:false,”value”:0.0,”targets”:[{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:2,”name”:”ERP”,”description”:null},{“id”:3,”name”:”Loja fisica”,”description”:null}],”technologies”:[{“id”:10,”name”:”MongoDB”,”description”:null,”developer”:null,”version”:null},{“id”:9,”name”:”NodeJS”,”description”:null,”developer”:null,”version”:null}]},{“id”:21,”name”:”Gubee Integrador”,”description”:”Ferramenta de integração para marketplaces”,”active”:false,”value”:0.0,”targets”:[{“id”:4,”name”:”Lojista que não desejam possuir ecommerce”,”description”:null},{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:2,”name”:”ERP”,”description”:null}],”technologies”:[{“id”:10,”name”:”MongoDB”,”description”:null,”developer”:null,”version”:null},{“id”:14,”name”:”Event Stream”,”description”:null,”developer”:null,”version”:null},{“id”:11,”name”:”Java 10″,”description”:null,”developer”:null,”version”:null},{“id”:12,”name”:”Kotlin”,”description”:null,”developer”:null,”version”:null},{“id”:13,”name”:”Kafka”,”description”:null,”developer”:null,”version”:null},{“id”:15,”name”:”Redis”,”description”:null,”developer”:null,”version”:null}]},{“id”:22,”name”:”Gubee AntiFraude”,”description”:”Ferramenta especialistas em detecção e prevenção à fraude”,”active”:false,”value”:0.0,”targets”:[{“id”:1,”name”:”Ecommerce”,”description”:null},{“id”:6,”name”:”Venda direta”,”description”:null},{“id”:7,”name”:”Mobile First”,”description”:null},{“id”:5,”name”:”Telecom”,”description”:null},{“id”:8,”name”:”Digital Onboarding”,”description”:null}],”technologies”:[{“id”:17,”name”:”Hadoop”,”description”:null,”developer”:null,”version”:null},{“id”:16,”name”:”Big Data Analytics”,”description”:null,”developer”:null,”version”:null},{“id”:19,”name”:”Cassandra”,”description”:null,”developer”:null,”version”:null},{“id”:18,”name”:”Pig”,”description”:null,”developer”:null,”version”:null},{“id”:13,”name”:”Kafka”,”description”:null,”developer”:null,”version”:null}]}] I […]

Categories
Angular Development

Set up an Event Listener on an Exported Angular Elements Web Component

EDIT: This is a Web Component exported from Angular using Angular Elements and is not traditional Angular I am experimenting with Angular Elements and have created an NgFor component that loads the JSON file below. [ { “id”:1, “name”: “star 1”, “image”:”https://picsum.photos/id/1059/400/400″, “text”:”Text about star 1″ }, { “id”:2, “name”: “star 2”, “image”:”https://picsum.photos/id/1060/400/400″, “text”:”Text about […]