csv
Undefined save method when using dynamic finders in rake task
I have a simple rake task importing records from a CSV file and saving them into the database. require \'csv\'[详细]
2023-04-11 17:30 分类:问答Cant split a line
I have this part of code that takes a file and puts it in an ArrayList. The file that will be entered will be a CSV (the current CSV that I use has headers at the first line, so I don\'t need that lin[详细]
2023-04-11 17:03 分类:问答Is there a better way to read an element from a file in Python?
I have written a crude Python program to pull phrases from an index in a CSV file and write these rows to another file.[详细]
2023-04-11 12:58 分类:问答having trouble with CSV.parse not updating rows
I am running rails 3.0.1 with ruby 1.9.2p290 and trying to parse a CSV file using CSV (since from what I understand, CSV is using the fasterCSV code now).[详细]
2023-04-11 12:23 分类:问答Generate tree structure from csv
I have scratched my head o开发者_如何转开发ver this problem for a while now.I am basically trying to generate a tree hierarchy from a set of CSV data.The CSV data is not necessarily ordered.This is li[详细]
2023-04-11 11:43 分类:问答need to format csv file differently using regex
I have a csv file that I need to revise, here is a snippet from it: 1.1.1,\"1, 8, 11, 13\" 1.1.2,\"10, 11, 12\"[详细]
2023-04-11 10:15 分类:问答How to find the top 10 most popular values in a comma separated list with PHP & MYSQL
I am new to all of this and I have Googled and searched on here, but to no avail. Using google and some of the responses here, I\'ve managed to solve a separate problem, but this is what I\'m really i[详细]
2023-04-11 10:02 分类:问答Split this csv/xls into separate files based on two columns?
I have a 35 MB Excel file with these columns: Index, Name, Year, AgeGroup1, Age开发者_开发知识库Group2, AgeGroup3 [...][详细]
2023-04-11 09:03 分类:问答Auto trim values for varchar on insert
Is there an equivalent option to *SET ANSI_PADDING* from ms-sql for mysql, or another 开发者_开发技巧way to auto-trim values inserted to a varchar-field from a csv file with LOAD DATA LOCAL INFILE \'f[详细]
2023-04-11 05:53 分类:问答Regular expression for delimiters
Need some help with a regular expression How can I write an expression that filters everything between the delimiters (tab, comma, semicolon)? All the preceeding/trailing s开发者_如何学Gopaces must g[详细]
2023-04-11 04:38 分类:问答