Questions tagged [sframe]

SFrame is a tabular data structure used to store millions of rows of data that do not necessarily fit into memory for analysis.

SFrame is Python package realized scalable, out-of-core dataframe which allows to work with datasets that are larger than the amount of RAM on your system.

Homepage: https://pypi.python.org/pypi/SFrame

82 questions
3
votes
7 answers

call function use .apply in python

I have a shortcode as following. try to use .apply to call a function. but it always gives me the error saying the function is not callable. def awesome_count(): return 10 products['awesome'] =…
alice
  • 225
  • 5
  • 14
2
votes
1 answer

Get all the data in a cell in Sframe

I am supposed to find data related to a particular value given for a column. I am given the corresponding value in col1 and need the relevant data from col2. I ran the following code using turicreate. sf1[(sf1['column_name'] ==…
2
votes
3 answers

How to extract rows with non-zeros column values?

Given a tsv file like this: doc_id/query_id 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 …
alvas
  • 115,346
  • 109
  • 446
  • 738
2
votes
1 answer

Graphlab sframe - Is there a way I can transpose an sframe?

I am using sframes from graphlab library. I need to do a few computations row wise. Also, the sframe structure would make more sense in my case if I was able to transpose the sframe. Is there a way I can do that? Or is it possible in any other data…
Dreams
  • 5,854
  • 9
  • 48
  • 71
2
votes
2 answers

graphlab not showing column image

I have a image column in a SFrame along with an image_array column. when I do sframe['image'].show() instead of showing the actual images it shows summary of the image column along with value,count and percent. How should I show the actual image…
Prashant Bhanarkar
  • 930
  • 3
  • 14
  • 32
2
votes
1 answer

Error in graphlab.SFrame('home_data.gl/')

I am doing Machine Learning Course from Coursera by University of Washington. In which I am using iPython's graphlab. During practise when I execute below command: sales = graphlab.SFrame('home_data.gl/') I am getting the error: InvalidProductKey …
Lok
  • 129
  • 1
  • 2
  • 13
2
votes
0 answers

Removing a file from hard drive after it has been loaded into an SFrame or any other python data structure

data = graphlab.SFrame.read_json('mongodump.json') If create the data variable by executing the line above, and then move or remove the file mongodump.json, would the variable data still be alive?
Semihcan Doken
  • 776
  • 3
  • 10
  • 23
2
votes
2 answers

convert an sframe column to a list

I need to convert an SFrame column to a list. input : `+---------+ | word | +---------+ | love | | loves | | easy | | perfect | | great | +---------+` output: ['love', 'loves', 'easy', 'perfect', 'great']
2
votes
1 answer

Assign a value to a single SFrame element

I want to assign a value to a single element (i.e. single row and column) in an SFrame. I am using the Python Notebook and importing graphlab. I created an SFrame with dimensions 16364 rows x 37 columns. The column 'test' contains zeros. I have used…
E Crompton
  • 48
  • 5
2
votes
1 answer

sFrame into scipy.sparse csr_matrix

I have a sframe like: x = sf.SFrame({'users': [{'123': 1.0, '122': 5}, {'134': 3.0, '123': 10}]}) I want to convert into scipy.sparse csr_matrix without invoking graphlab create, but only using sframe and Python. How to do it?
dvshekar
  • 93
  • 11
2
votes
2 answers

Using sframe.apply() causing runtime error

I am trying to use a simple apply on s frame full of data. This is for a simple data transform on one of the columns applying a function that takes a text input and splits it into a list. Here is the function and its call/output: In [1]: def…
rgalbo
  • 4,186
  • 1
  • 19
  • 29
2
votes
0 answers

GraphLab Create with SFrame: Memory error

I'm trying to make an SFrame to analyze a folder 'amazon_baby.gl' with product reviews information for sentiment analysis. The folder is only about 40MB big and I have about a GB in memory. Yet I get an…
Anshu Dwibhashi
  • 4,617
  • 3
  • 28
  • 59
1
vote
2 answers

How to load SFrame directory archive data into Jupyter Notebook?

I am doing a Machine Learning Course on coursera and I am unable to load the data required for the assignment. I was supposed to download the zip file and use it on jupyter notebook. I gather it is a SFRAME directory archive. sf = SFrame(data =…
Shrunjala
  • 11
  • 1
  • 3
1
vote
1 answer

graphlab - sframe : How to remove rows which have same ids and condition on a column?

I have a graphlab sframe dataframe where few rows have similar id value in "uid" column. | VIM Document Type | Vendor Number & Zone | Value <5000 or >5000 | Today Status…
Dreams
  • 5,854
  • 9
  • 48
  • 71
1
vote
2 answers

Stacking an array of lists in pandas / SFrame stack equivalent in Pandas

Is there a SFrame stack equivalent in pandas dataframes? Pandas' own stack works only with levels whereas I am looking for expanding a single column at the same level as others which contains lists. Input Dataframe: There are some more columns like…
Ankit Goel
  • 360
  • 1
  • 5
  • 18