In a very simple workbook load data into an Sframe named "Students".
When I execute "Students" I get the expected results (just cut and pasted not actual results)
First Name Last Name Country age
Bob Smith United States 24
Alice Williams Canada 23
Malcolm Jone England 22
Felix Brown USA 23
Alex Cooper Poland 23
Tod Campbell United States 22
Derek Ward Switzerland 25
[7 rows x 4 columns]
But when I enter "Students.explore()" I get the results
"Materializing SFrame"
I expected a GUI with a rich display describing the data. This is what I get when I use graphlab.create in a non - Google Collaboratory workbook.
Below is the code description and link to the turicreate API help.
"SFrame.explore([title]) Explore the SFrame in an interactive" GUI.https://apple.github.io/turicreate/docs/api/turicreate.visualization.html
Google Colab is run in the Cloud. So, it can't open a new app window on your computer.
You may want to try Local Runtime
Related
I am using ScaNN to perform similarity searches and would like to place more emphasis on some features than others when performing a similarity search.
for example, if I have the following data
name | age | country | income
John 29 US $47k
Susan 28 US $44k
Bill 26 US $39k
Sarah 35 UK $100k
Jack 34 UK $90k
Maggie 37 UK $95k
and income has more importance, then given the following query:
George, 28, US, $100k
it would return
Sarah, Jack, Maggie
adding more weight to the income feature.
Training data values are normalized before building the similarity index
df_np = preprocessing.normalize(df[features])
and likewise the query values are normalized before performing a search
np_q = preprocessing.normalize([list(query.values())])
I want to list the person's name and beside how many times this person got a 10.
Is there any command like this?
marcus gold 25
julia silver 34
jason platinium 12
sarah bronze 45
Is there a way to look up for values(sheet2) in sheet1 and copy all the matching rows to a new sheet (sheet3)?
Sheet1
Name Hours Group
Joy 12 AA
Allen 23 AA
Tom 34 AA
Amy 45 AX
Chris 6 AD
Allen 7 FG
Tom 8 GH
Joy 8 JK
Amy 23 UY
Jack 11 AA
Sheet 2 (col A):
Joy
Allen
Amy
Chris
Sheet 3 (expected o/p)
Joy 12 AA
Joy 8 JK
Allen 23 AA
Allen 7 FG
Amy 45 AX
Amy 23 UY
Chris 6 AD
What you try is actually filter sheet1 by the names of sheet2
Make use of Advanced Filters to achieve the result of sheet3.
But the restrictions are …
it has to be done in the same sheet (Excel restricts it)
so you need to copy the result to sheet3 after filtering it.
you need to sort it by name before or after
The following image describes what parameters I used for advanced filter.
(Sorry for the german screenshot, I think you will figure it out.)
Note that you don't necessarily copy the result to another location, but can do a reversible filtering just in place of the original data. Which one to use depends on what you are going to do with that data later.
Also note, that the headlines (like 'Name') of the criteria range have to match the list range. The advanced filter uses them to find the column to filter on.
I have one table:
Person Name Country code
Andrew 1
Philip 2
John 1
Daniel 2
and a lookup table:
Country code Country name
1 USA
2 UK
I added them to powerpivot, created a relationship between the country code fields, then I created a pivot table. I expect to get the following:
Person Name Country code
Andrew USA
Philip UK
John USA
Daniel UK
But what I actually get is:
Person Name Country code
Andrew USA
Andrew UK
Philip USA
Philip UK
John USA
John UK
Daniel USA
Daniel UK
Couple of options:
Add a column to your main table that uses a formula to pull in the Country Name from your LookUp Table e.g.
=RELATED(LookUpTable[Country Name])
If you drag in any measure that references the main table you will get your desired result e.g. =COUNTROWS('MainTable') You then hide the results column if you had to.
Can anyone help me with preparing data for the new feature Geo Maps. I want to show the below data on geo maps.
Country Name Sales
Russia 1244
Canada 3553
Germany 5345
Australia 2456
France 2566
United Kingdom 6743
India 3677
United States 5633
Thanks in advance,
the setup is quite easy and you can find out more information here:
https://developer.gooddata.com/article/setting-up-data-for-geo-charts
Basically it is about setting up the correct date type for columns that represents geo-information.
JT