How would I create an input-view with a list that has two columns? I want something similar to what the date-picker looks like.
My goal is to choose from 2 separate lists of values and join them together. For example if I had list a = ['a', 'b', 'c'] and list b = [1, 2, 3] I would want to allow the user to choose a letter and number to create a1 or b3.
Bixby currently does not support this functionality. I would recommend that you raise a Feature Request in our community. This forum is open to other Bixby developers who can upvote it, leading to more visibility within the community and with the Product Management team.
Related
I am working on a dataset which has data (text) entries captured in different styles like we see in the table below in 1000's of rows:
**School Name **
Abirem school
Abirem sec School
Abirem Secondary school
Abirem second. School
Metropolitan elementary
Metropolitan Element.
Metropolitan ele
I need help to extract the unique data values within a group of similar entries regardless of the style it was entered. The output I want should look like we see below:
**School Name **
Abirem school
Metropolitan elementary
I have tried using the functions; EXACT, UNIQUE, MATCH and even XLOOKUP (with the wildcard option) but none of them gives me the output I want.
Is there a logical function that can be used?
This will prove to be tricky. Excel would not know wheather or not two different names that look similar are actually meant to be similar. Even for us humans it will become trivial. I mean; would School1 ABC be similar to School1 DEF or not? Without actually knowing geographical locations about these two schools these could well be two different schools with a similar first word in their names.
Either way, if you happen to be willing to accept this ambiguity you could make a match on the 1st word of each line here and return only those where they match first:
Formula in C1:
=LET(a,A1:A7,UNIQUE(XLOOKUP(TEXTSPLIT(a," ")&" *",a&" ",a,,2)))
In a list of lists, I need to add a list element to each inner list, whenever one or more elements of another list are contained in a fixed position element of the inner list itself.
Here's an example of the lists
list1 = ['AS23X2', '33YK87', 'YY744Q']
list2 = [[0, 1773332, 'some text that may contain 0, 1 or more occurrences of list1 items'], [1, 77666543, 'some other text 33YK87 is here']]
Note that len(list1) is about 95,000 and len(list1) over 120,000. The requirement is that if more than 1 item of list1 is found within list2[n][2], they are all appended as a list.
The below code does exactly what is required, but is very slow (takes several minutes). I can't figure out how to improve performance - can anyone suggest a possible solution?
for i in list2:
i.append([x for x in list1 if x in i[2]])
Please do consider that list2 is derived from a Pandas dataframe:
list2 = df2.values.to_list()
I'm quite confident there's something more efficient that could be achieved using Pandas, but I'm new to it and hope someone already solved a similar question in a better way.
Thanks
I'm just spit balling ideas:
Use a database
Use multithreading library
Try to do something with Set if the dataset includes many duplicates
Or try using Counter from the collections library to remove duplicates, but keep occurrences. I'm not sure if this will be faster given your dataset
I have a Sharepoint List 'TeamValues' that defines values that should appear in another list.
TeamValues List:
Title Team Sub-Team
1 A Blue
2 A Green
3 B Yellow
4 C Silver
5 C Gold
I have a list that users can edit and in this list I want to lookup 'TeamValues' list and create a dropdown list for users to select a value from the Team column. This needs to be unique so in this case the values that should appear are: A,B,C
Once they select a value I need a second column to populate a drop down list that users can select E.g. If they select Team: A, then the second drop down should show: Blue, Green as the options.
How can I do this using Sharepoint? I don't have any code access and only have the sharepoint GUI to work with.
Is this possible?
I have created a lookup choice column Team that looks at my TeamValues List however this is showing all values e.g. A,A,B,C,C. I have created a lookup choice column for the subteam that also shows every value. I dont know how to link these together or get a relationship between the two choice drop downs/ remove duplicate values. I tried the following option: 'the Enforce unique values is not displayed.' which did not work
No code applicable
I am sorry to say that but I think there is no OOB functionality to show distinct values of lookup column and to do this kind of relation without any code. I also did some research just to be sure but I could not find anything like that.
If You would consider some code You can always use javascript jsLink technology to achieve this. It's not that hard. It's a JS file that You can add to some lib on sharepoint site and then You can add this JS to webpart manually without any deploy or other. After that with javascript You can overwrite the default behavior of any control/column and do this kind of relation or show only distinct values.
I Need to know how many time a string appears in my dataframe, I used the follow sentence:
print(df['Mobile Register' == df.col1].shape[0])
But my problem is, I need to find all registers where contains Mobile Register, because in my data frame this string can be Mobile Register 1, Mobile Register 2, Mobile Register 3, Mobile Register n ...
So I understand my command will not be used, therefore, what a need to do to find the count?
Use series.str.contains():
df.loc[df['col_name'].str.contains('Mobile Register',na=False)]
This will give you all the rows satisfying the condition.
To find count of a specific column which meets this condition , use:
df.loc[df['col_name'].str.contains('Mobile Register',na=False),'column_name'].count()
If you need count of all columns satisfying this condition:
df.loc[df['col_name'].str.contains('Mobile Register',na=False)].count()
I donĀ“t know it could be helpful or if it is the best solution, but I found what I want with the follow sentence
names = df.col1.tolist()
count=0
for colname in enumerate(names):
print(colname[1])
if ('Mobile Register' in str(colname[1])):
count=count+1
The context of my problem is that I have to lists:
One list of categories
One list of items
The number of categories/items in both list can vary, as well as their order in it.
My problem is that I want to implement 2 possible types of actions:
The first action is to be able to assign each item to one or more categories. For example, I am the user of the excel sheet and I want to assign item 3 to categories 1, 2 and 4 (via checkbox or other means).
The second action is to be able to highlight all the items in a category by selecting this category (either select the cell or the category in a dropdown list). For example, is items 1 an 3 belong to category 1, we would have the following results when selecting category 1:
I would like to realize this in an excel spreadsheet with VBA macro. I tried to find technical solutions in order to implement this but without success. Indeed, I would need to link variables to a cell (in order to assign categories to item) but I found no way to do that (classical use of variables and arrays are too restricted for the requirements).
My questions are therefore:
Do you think the proposed application is implementable in excel (potentially with VBA) ?
Do you have ideas of what technical solutions I could use in order to implement it so that I have a starting point to solve my problem ?
You can use excel as a 2-entries array to assign items to categories; then use conditional formatting:
Maybe its too simple for your case, but it can help somebody else.