Comments (5)
Just to clarify, are you looking for this feature in cudf itself, or did you need this feature using something like cudf.pandas?
(also, since you're planning on reading pickles, do you also want support for to_pickle
?)
If you're just looking to pickle cudf objects, you can do this manually using the pickle module, e.g.
import cudf
import pickle
a = cudf.DataFrame({"a":[1,2,3]})
# Write to pickle
pickle.dump(a, open("cdf.pkl", "wb"))
# Read from pickle
pickled_a = pickle.load(open("cdf.pkl", "rb"))
# Confirming they are equal
cudf.testing.testing.assert_frame_equal(a, pickled_a)
from cudf.
Thanks for the reply, I know that there is a dedicated pickle module.
I just wanted to compare my code without any code changes as I thought that cuDF has feature parity with pandas df.
from cudf.
Thanks for the reply, I know that there is a dedicated pickle module. I just wanted to compare my code without any code changes as I thought that cuDF has feature parity with pandas df.
Thanks for clarifying.
You might want to try cudf.pandas if you'd like to use cudf with zero code change from pandas.
(Although there is also an issue with read_pickle there #15459)
from cudf.
I just wanted to compare my code without any code changes as I thought that cuDF has feature parity with pandas df.
Mostly, but not completely. Other than the API compatibility is there some aspect of pandas.read_pickle
that is not supported by plain pickle.load
?
from cudf.
I just wanted to compare my code without any code changes as I thought that cuDF has feature parity with pandas df.
Mostly, but not completely. Other than the API compatibility is there some aspect of
pandas.read_pickle
that is not supported by plainpickle.load
?
No, at least nothing I am aware. As I said, I just wanted to try out and test my lib with cudf with the least possible effort to see if it brings some performance gains.
from cudf.
Related Issues (20)
- [QST] Is cuDF slow if there are many columns? (pandas, numpy, polars, cuDF Comparison) HOT 2
- [BUG] Segmentation fault in cudf::conditional_inner_join with Zero-Row Input HOT 3
- [BUG] Segfault in pylibcudf to_arrow interop when passing nested list and metadata HOT 8
- [FEA] Refactor expensive string APIs, combining two kernel calls into one HOT 3
- [QST] Based on the cuDF, How can I know which function is enable the cuDF HOT 1
- [FEA] Batch file input operations to enable smart coalescing
- [BUG] Binary Operations between fixed_point and floating-point not supported
- [BUG] Column type for fixed_width_column_wrapper should be restricted. HOT 8
- [QST] How to debug a user defined function ? Break points just won't stop. HOT 5
- [FEA] Introduce a new owning type for Arrow interop data HOT 7
- [BUG] .at accessor for new column fails in cudf.pandas HOT 1
- [BUG] cudf::conditional_inner_join Fails with cudaErrorIllegalAddress HOT 5
- [FEA] - AST Support for fixed_point literals. HOT 1
- [QST] Question about the cuDF.pandas interception HOT 1
- [FEA] Dictionary type support for `row_bit_count`
- [FEA] Add a low-memory JSON lines reader option based on byte range reads
- [FEA] JSON parsing bug with byte-range reading
- [FEA] Consider fuzz testing with hypothesis
- [FEA] Parquet chunked reader benchmark that emulates heavily nested column data with specific properties.
- [FEA] Create a multi-threaded nvbenchmark for groupby_max
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudf.