py-datatable Questions
3
What is the data.table for python equivalent of %like%?
Short example:
dt_foo_bar = dt.Frame({"n": [1, 3], "s": ["foo", "bar"]})
dt_foo_bar[re.match("foo",f.s),:] #works to filter by "foo"
I h...
Henleyonthames asked 10/2, 2019 at 21:29
4
Solved
I am unable to perform a standard in operation with a pre-defined list of items. I am looking to do something like this:
# Construct a simple example frame
from datatable import *
df = Frame(V1=['...
Hewie asked 14/6, 2020 at 22:6
1
Solved
I am new to working with python datatables and here is the tutorial I am following
How do I filter out the rows where the values in a certain column are contained in a list?
Essentially this is the...
Princessprinceton asked 30/5, 2021 at 0:47
1
Solved
I have a data frame with two columns as shown below,
DT_EX = dt.Frame({'film':['Don','Warriors','Dragon','Chicago','Lion','Don','Chicago','Warriors'],
'gross':[400,500,600,100,200,300,900,1000]})...
Calandra asked 29/4, 2020 at 5:36
1
Solved
What is the proper way to query top N rows by group in python datatable?
For example to get top 2 rows having largest v3 value by id2, id4 group I would do pandas expression in the following way:
...
Inclinatory asked 10/1, 2019 at 12:0
1
© 2022 - 2024 — McMap. All rights reserved.