Questions tagged [eda]

event-driven architecture

Event-driven architecture (EDA) is a software architecture pattern promoting the production, detection, consumption of, and reaction to events.

108 questions
0
votes
1 answer

Event Driven Architecture: Re-handling events in Dead Letter Queue results in incorrect state of domain model

I'm currently using Event Driven Architecture in microservices. I have one question related to event based systems: For example, suppose I have a Person model which reacts to ProfileChangeEvent(contains the name that the Person need to update with).…
Yun Teng
  • 23
  • 1
  • 4
0
votes
1 answer

Countplot showing same name values as different bars when it should be shown as one bar. How should I solve this problem?

I am working with a dataframe of colors which looks like this: However while using countplot() the resultant graph turns out to be like this... plt.figure(figsize=(8,12)) sns.countplot(y="favorite color",data=col_fav_color) Notice how instead of…
0
votes
2 answers

How to substitute for null values if it is a categorical variable?

I was trying to get dummy values for my data, when I noticed some values are having '?' as their value. As many rows in my data have these values, I simply cannot drop them. In such case what should I replace them with? Just taking the mode of the…
0
votes
1 answer

Combing two columns from two different data frames to remove missing values in Pandas

I am working on the Titanic dataset as my first project. To impute missing values of the variable 'Age', I had run a linear regression model. Now, I have 2 dataframes as follows - train_data.tail() Survived Pclass Sex Age SibSp …
0
votes
2 answers

Reducing Latency with multiple hops in a microservices architecture (North South Traffic) (FE -> API Gateway --> BFF --> Service Layer --> Backend)

How can one reduce latency with the mandatory multiple hops in a microservices architecture for north south traffic, i.e., Front End -> API Gateway --> Backend for Front End -> Service Layer --> Backend For East West Traffic, asynchronous…
Nathan Aw
  • 545
  • 5
  • 18
0
votes
1 answer

Trying to figure out how to transform certain values in a specific column based on row values from another column

Here's an example: Given that the dataset is a CSV file: Column 1 Column 2 Column 3 Site # Type Value 0 A 0.358 0 B 12 1 B 84 1 A 3.879 1 B 4.823 0 A …
konsama
  • 327
  • 2
  • 12
0
votes
1 answer

python plot get_loc(self, key, method, tolerance) error

I tried to make pie chart with plotting process. chad = pd.read_csv("Admission_Predict.csv", engine = 'python') chad_2 = chad.drop(['Serial No'], axis = 1) chad_2.head() This shows the picture below: enter image description here f, ax =…
A.Jeon
  • 1
  • 2
0
votes
1 answer

Loading JSON file into R

I want to insert this JSON file (twitter data) into R and want to make a list like this but I am getting something like this My JSON looks something like this (this is just an example) [{"contributors": null, "truncated": false, "text": "RT…
0
votes
3 answers

In DDD: Commands that produce events that no one consumes

I am applying Domain driven design in my project and I am running into a scenario where a user action translates into a command in one of my bounded contexts and thus produces an event. However I see that none of my other bounded contexts would…
john
  • 1,057
  • 1
  • 17
  • 28
0
votes
1 answer

Extract all time elements from a column

I have a dataset with a column named ['STime'] that I want to use to create many columns containing each time element (Year, Month, day, etc). The column values have this format 2016-04-16 10:12:41. I tried creating a year column separately using: …
principe
  • 173
  • 1
  • 1
  • 11
0
votes
3 answers

JSON file with different array lengths in Python

I want to explore the population data freely available online at https://www.nomisweb.co.uk/api/v01/dataset/NM_31_1.jsonstat.json . It contains population details of UK from 1981 to 2017. The code I used so far is below import requests import…
dwalker
  • 61
  • 1
  • 4
  • 12
0
votes
2 answers

Virtual interface between monitor/driver and their BFM ??? What they are actually, can someone explain?

I was reading UVM cookbook and I got confused about virtual interface connection in between monitor, driver and their BFM. Does it mean there could be multiple driver or monitor, or this is independent of interfacing that does not know either its…
0
votes
1 answer

Can nettype be used to define struct in System Verilog?

Can nettype be used to define struct in SystemVerilog language? I am getting failure in defining so, can anybody tell me?
0
votes
1 answer

Separated salary from per annum and per day

I have csv file salary = pd.read_csv('./datasets/salary.csv') is it possible to have an output like this
Edg
  • 27
  • 4
0
votes
2 answers

Kurtosis interpretation

For a set of data points I have found mean value is 2989.05,skewness is 26.67 and kurtosis is 1003.29. Here it seems kurtosis is very high which I am not able to understand what it means.Can someone explain this.
richa1465
  • 23
  • 6