warrenweckesser / npreadtext Goto Github PK
View Code? Open in Web Editor NEWRead text files into a NumPy array.
License: BSD 2-Clause "Simplified" License
Read text files into a NumPy array.
License: BSD 2-Clause "Simplified" License
One of the outstanding tasks in #1 is handling the encoding
parameter.
I've looked at this a bit and thought that doing so may require some changes in the parsing code, particularly in tokenize
. Currently, tokenize
uses char32_t to represent elements in the word buffer which works as expected for utf encoded files, but is a tricky fit for buffers of bytes. I was thinking that the simplest solution would be to template the tokenize
function to provide version that handled buffers of bytes also.
IYO does this sound sensible? Or is there maybe a simpler way of treating buffers of bytes without having to modify the tokenization function?
Create the function loadtxt
with an API that is compatible with numpy.loadtxt
.
API completion tasks
loadtxt
can handle (currently read
handles a filename or a file-like object)converters
parameterencoding
parameter1.2-3.4j
). (Make the complex unit character configurable.)unpack
parameterndmin
parameterdtype
parametercomments
parameter
delimiter
parameterskiprows
parameterusecols
parametermax_rows
parameterOptimization
dtype=None
results in two passes)A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.