Ich muss Python und Angular JS verwenden, um eine CSV-Datei von Python an die Webseite zu senden und sie entsprechend anzuzeigen.Vergleichen Sie zwei csv und führen Sie sie zusammen
Ich habe 2 CSV-Dateien bekam mit Feldern als
CSV1
Country code,Telecom,Latency
919618, India Private Mobile,0.008800
919619, India Private Mobile,0.008800
919620, India Private Mobile,0.008800
CSV2
Country code,Telecom,Latency
919802, India Private Mobile,0.008400
919803, India Private Mobile,0.008400
919620, India Private Mobile,0.008400
Die Webseite sollte als
Country code,Telecom,Latency
919618, India Private Mobile,0.008800
919619, India Private Mobile,0.008800
919802, India Private Mobile,0.008400
919803, India Private Mobile,0.008400
919620,India Private Mobile,0.008400,0.008800
(die letzte Anzeige Zeile enthält zwei Werte cause die CSV-Datei enthält 919620 commons in beiden)
So, jetzt bin ich neu in Angular JS und Flask, führen Sie mich einfach wie zu starten?
begann dieses mit
import pandas as pd
import numpy as np
dfa = pd.read_csv('rate4.csv', names=['Country Code', 'SP', 'Rate']);
dfb = pd.read_csv('rate3.csv', names=['Country Code', 'SP', 'Rate']);
Mögliche Duplikat [Merging 2 csv-Dateien] (https://StackOverflow.com/questions/16265831/merging-2-csv-files) –