I am a R user. I am trying to "translate" my R habit to python. Is there anything similar to R data.table in python?
Best Answer
datatable from pypy
"Python library for fast multi-threaded data manipulation and munging."
or the more well-known and widely used:
pandas, also from pypy
"Powerful data structures for data analysis, time series, and statistics"
Both are solid options
yes, datatable for python : python datatable
the github link
An Overview of Python’s Datatable package
form github page:'As the name suggests, the package is closely related to R's data.table and attempts to mimic its core algorithms and API.'
You can also use pandas
Sound like you're looking for something like a Pandas Dataframe?
Something like
import pandas as pddict_data = {"Col A": [1, 2], "Col B": [3, 4]}df = pd.Dataframe(data=dict_data)print(df)
would produce the output
Col A Col B0 1 31 2 4