PHP code example of zealot / dataframe
1. Go to this page and download the library: Download zealot/dataframe library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zealot / dataframe example snippets
$pathToCsvFile = '/tmp/csvfile_emails.csv';
$utils = new IOUtils();
$dataFrame = $utils->fromCsvFile($pathToCsvFile);
$filteredDF = $dataFrame->filter()->whereIn('email', ['[email protected]'])->get();
foreach ($filteredDF->getAssocArrayIterator() as $line) {
var_dump($line);
}
//$utils->toCsvFile($filteredDF,'path to file')