473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CSV like file format featured recently in Daily Python URL?

I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.

The format was ASCII with a multiline header defining types for the
comma seperated column data below. It may have had the capability to
store multiple tables in one file. There was news on the homepage that
an alternate 'no data here' syntax was also supported.

An example file had vaguely this structure:

columnname as datatype
columnname as datatype
columnname as datatype
columnname as datatype

data,data,data,data
data,"other data",data,data
data,data,"",data

Can anyone remember this file format/python module?

With thanks

Alex

Oct 7 '05 #1
4 1726
Alex Willmer wrote:
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.


http://www.netpromi.com/kirbybase.html ?

</F>

Oct 7 '05 #2
On Fri, 2005-10-07 at 18:56 +0200, Fredrik Lundh wrote:
Alex Willmer wrote:
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month or
two.


http://www.netpromi.com/kirbybase.html ?


No I don't think that was it. Although KirbyBase looks like a nice
project, particularly the alternative to SQL it uses to specify queries.

I remember the webpage presenting the format as fairly established and
in active use as an export/import medium, the python module was a
binding to an existing library. It's very possible I've combined the
memories of KirbyBase (for instance) and HDF. My recollection is to say
the least, foggy.

Thankyou for replying and thankyou for Daily Python-URL. I'll put this
on a backburner for now. I may remember it or come across it again by
fortune.

Alex

Oct 8 '05 #3
EP
> From: Alex Willmer <al**@moreati.org.uk> inquired
I'm trying to track down the name of a file format and python module,
that was featured in the Daily Python URL some time in the last month
or
two.

The format was ASCII with a multiline header defining types for the
comma seperated column data below. It may have had the capability to
store multiple tables in one file. There was news on the homepage that
an alternate 'no data here' syntax was also supported.

An example file had vaguely this structure:

columnname as datatype
columnname as datatype
columnname as datatype
columnname as datatype

data,data,data,data
data,"other data",data,data
data,data,"",data

Was it something like ARFF? http://www.cs.waikato.ac.nz/~ml/weka/arff.html

Google "ARFF Python": http://www.google.com/search?q=arff+python

-----------------------------------------------------

% 1. Title: Iris Plants Database
%
% 2. Sources:
% (a) Creator: R.A. Fisher
% (b) Donor: Michael Marshall (MA**********@io.arc.nasa.gov)
% (c) Date: July, 1988
%
@RELATION iris

@ATTRIBUTE sepallength NUMERIC
@ATTRIBUTE sepalwidth NUMERIC
@ATTRIBUTE petallength NUMERIC
@ATTRIBUTE petalwidth NUMERIC
@ATTRIBUTE class {Iris-setosa,Iris-versicolor,Iris-virginica}
The Data of the ARFF file looks like the following:

@DATA
5.1,3.5,1.4,0.2,Iris-setosa
4.9,3.0,1.4,0.2,Iris-setosa
4.7,3.2,1.3,0.2,Iris-setosa
4.6,3.1,1.5,0.2,Iris-setosa
5.0,3.6,1.4,0.2,Iris-setosa
5.4,3.9,1.7,0.4,Iris-setosa
4.6,3.4,1.4,0.3,Iris-setosa
5.0,3.4,1.5,0.2,Iris-setosa
4.4,2.9,1.4,0.2,Iris-setosa
4.9,3.1,1.5,0.1,Iris-setosa
Lines that begin with a % are comments. The @RELATION, @ATTRIBUTE and @DATAdeclarations are case insensitive.

---------------------------------------------------------------------------------------------------------

Oct 8 '05 #4
On Thu, 2005-10-06 at 07:44 -0800, EP wrote:
Was it something like ARFF? http://www.cs.waikato.ac.nz/~ml/weka/arff.html
Yes that was it thankyou. Although it would seem there isn't a general
python module, rather a Cookbook script to perform conversion to SQL. I
must have confused ARFF with HDF.
Google "ARFF Python": http://www.google.com/search?q=arff+python


Curiously, when I just performed that search, this thread was on the
first page of results as a supplemental result.

Oct 8 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: beliavsky | last post by:
Google has started a site Google Code http://code.google.com/ to showcase Open Source software, and the first featured project is PyGoogle, a Python module wrapper for the Google Web APIs. Also...
4
by: Byron | last post by:
Hi, I need to remove some items from a Javascript drop down menu coded by someone else. The menu is contained within a single .js file. I'm not very fluent in javascript, but I know what it...
4
by: Simon | last post by:
Hi, My problem is as such. I receive daily log files that arrive on our server every day with the following format: mmddyyyy.xls The problem is that these xls files are really tab delimeted...
24
by: Joseph Geretz | last post by:
Up to this point, our application has been using Windows File Sharing to transfer files to and from our application document repository. This approach does not lend itself toward a secure...
1
by: friedmud | last post by:
Has anyone used PyPar ( http://datamining.anu.edu.au/~ole/pypar/ ) recently? I _do_ want to do MPI (not BSP) but I don't need any advanced MPI things... and PyPar seemed just up my ally... but...
5
by: amit.uttam | last post by:
Hey everyone, I've recently jumped big time into python and I'm working on a software program for testing automation. I had a question about proper logging of output. What I would like is: 1....
6
by: ssharpjr | last post by:
Hi Guys, I'm new to Python (mostly) and I'm wanting to use it for a new project I'm faced with. I have a machine (PLC) that is dumping its test results into a fixed- length text file. I need...
0
by: Edwin.Madari | last post by:
here is a working code snippet to read from MySQL db. python tutorial has examples of reading from files. put them together to do your task. ===================================================...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.