Streaming operations with pandas.
Project description
README
pandas_streaming aims at processing big files with pandas, too big to hold in memory, too small to be parallelized with a significant gain. The module replicates a subset of pandas API and implements other functionalities for machine learning.
from pandas_streaming.df import StreamingDataFrame sdf = StreamingDataFrame.read_csv("filename", sep="\t", encoding="utf-8") for df in sdf: # process this chunk of data # df is a dataframe print(df)
The module can also stream an existing dataframe.
import pandas df = pandas.DataFrame([dict(cf=0, cint=0, cstr="0"), dict(cf=1, cint=1, cstr="1"), dict(cf=3, cint=3, cstr="3")]) from pandas_streaming.df import StreamingDataFrame sdf = StreamingDataFrame.read_df(df) for df in sdf: # process this chunk of data # df is a dataframe print(df)
Links:
History
0.2.???? (2018-12-31)
Features
5: add random_state to splitting functions
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pandas_streaming-0.1.66-py3-none-any.whl
.
File metadata
- Download URL: pandas_streaming-0.1.66-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8eb4c7daab9a38b061becd1604b29379c5984502dba850e0f886f3f6c539cdc |
|
MD5 | 9cb041a6a4a0a6be676c16b31017e201 |
|
BLAKE2b-256 | b750ac818d9c27c16d84a49f73947799122afabc5c4f8551967bc64d6ffcb967 |