@@ -18,18 +18,18 @@ describe("pipeCsvTransform", function () {
1818 streamCsvTransformer ( inputFilePath , transformer , { outputFilePath, inputStreamOptions : { header : false } } )
1919 } ) ;
2020
21- it ( "streamCsvTransformer works for remote files" , async function ( ) {
22- const inputFilePath = "https://raw.githubusercontent.com/opensource9ja/danfojs/dev/danfojs-node/tests/samples/titanic.csv"
23- const outputFilePath = path . join ( process . cwd ( ) , "test" , "samples" , "titanicOutRemote.csv" ) ;
24- const transformer = ( df : DataFrame ) => {
25- const titles = df [ "Name" ] . map ( ( name : string ) => name . split ( "." ) [ 0 ] ) ;
26- const names = df [ "Name" ] . map ( ( name : string ) => name . split ( "." ) [ 1 ] ) ;
27- df [ "Name" ] = names
28- df . addColumn ( "titles" , titles , { inplace : true } )
29- return df
30- }
31- streamCsvTransformer ( inputFilePath , transformer , { outputFilePath, inputStreamOptions : { header : true } } )
32- } ) ;
21+ // it("streamCsvTransformer works for remote files", async function () {
22+ // const inputFilePath = "https://raw.githubusercontent.com/opensource9ja/danfojs/dev/danfojs-node/tests/samples/titanic.csv"
23+ // const outputFilePath = path.join(process.cwd(), "test", "samples", "titanicOutRemote.csv");
24+ // const transformer = (df: DataFrame) => {
25+ // const titles = df["Name"].map((name: string) => name.split(".")[0]);
26+ // const names = df["Name"].map((name: string) => name.split(".")[1]);
27+ // df["Name"] = names
28+ // df.addColumn("titles", titles, { inplace: true })
29+ // return df
30+ // }
31+ // streamCsvTransformer(inputFilePath, transformer, { outputFilePath, inputStreamOptions: { header: true } })
32+ // });
3333
3434 it ( "streamCsvTransformer works for custom writers" , async function ( ) {
3535 const inputFilePath = "https://raw.githubusercontent.com/opensource9ja/danfojs/dev/danfojs-node/tests/samples/titanic.csv"
0 commit comments