Skip to main content
3 votes
1 answer
116 views

I have two pandas series: right_series Index Value 1 0.1 2 0.2 3 0.3 6 0.6 7 0.7 left_series Index Value 1 0.1 5 0.5 10 1.0 I would like to join right_series on left_series by the indices, such that ...
Billy Pilgrim's user avatar
1 vote
0 answers
33 views

I am working with a table in DolphinDB where multiple rows share the same id, and each row contains non-null values in different columns. My goal is to consolidate these rows into a single row for ...
xiyan zheng's user avatar
0 votes
1 answer
33 views

I have 2 queries in a Dataverse Dataflow ("Table 1" and "Table 2") that I combine in a new Append Query ("Append Table 1 & 2"). I then merge "Append Table 1 &...
grasshopper's user avatar
1 vote
1 answer
107 views

I need to combine two dataframes: one with detection data and another with the metadata for those detections. The column names of the first dataframe, which is called rt_det are: tag_id, power, ...
Tanya Lemieux's user avatar
0 votes
2 answers
190 views

I recently solved the Merge Sorted Array question on leetcode Here is the part of the code I am having doubts on : while (curr >= 0 && p1 >= 0 && p2 >= 0) { // more TC if ...
Suswetha's user avatar
4 votes
3 answers
106 views

I am running into some weird merge conflict issues even though I am the only one working on the repository and have only made linear commits. I have these branches: main feature-A (based off of main) ...
Nermin's user avatar
  • 1,140
-7 votes
1 answer
174 views

I have an object obj; and I then obtain an array arr of key-value pairs. Assuming that the key sets of obj and of arr are disjoint (i.e. no key appears in both) - how do I efficiently add all pairs in ...
einpoklum's user avatar
  • 138k
0 votes
0 answers
29 views

I'm looking to map either wikidata ids or GeoName ids to geoBoundary shapeIDs for ADM1 and ADM2. I'm not sure if there is a straightforward way to do this. For example, here is the GeoName entry for ...
Slash's user avatar
  • 581
6 votes
2 answers
200 views

I have a DataFrame that I want to merge and drop only duplicates values based on column name and row. For example, key_x and key_y has the same values in the same row in row 0,3,10,12,15. My DataFrame ...
Chris's user avatar
  • 63
0 votes
2 answers
177 views

# Read lookup file which only contains 5 columns. df_lookup = pd.read_excel( os.path.join(path, 'lookup.xlsx'), index_col=[0, 1, 2, 3, 4]) # sample df_lookup # |A |B |C |D |E | # |--|--|--|--|...
mk_'s user avatar
  • 27
2 votes
1 answer
67 views

I’m working with the DolphinDB Python API to analyze financial data, but I can’t join a table transformed by pivotby() with another table directly. The error says TablePivotBy has no merge attribute. ...
xiao feng's user avatar
4 votes
3 answers
98 views

Note: I have already looked at the following answers and they don't seem to apply or work in the way I expect them to work: Reword one commit prior to merge Squashing old git commits that were before ...
Mirrana's user avatar
  • 1,813
-1 votes
1 answer
133 views

I have two lists in Python: list1 = [1, 2, 3, 4] list2 = [3, 4, 5, 6] I want to merge them into a single list such that: No duplicates remain The original order of elements is preserved For the ...
Binil S Mathew's user avatar
0 votes
0 answers
51 views

I am trying to join two outlier tests, by attribute id, the outliers discovered from LOF_Outliers and the outliers discovered from Distance_Outliers. But only one of these two outliers is showing: ...
therickster's user avatar
2 votes
1 answer
93 views

This is a follow-up question to my attempt at debugging a merge conflict. Instead of the complex case there, consider the following script that re-creates the "same" repo every time: #!/bin/...
Florian Brucker's user avatar

15 30 50 per page
1
2 3 4 5
1683