Fiche Data Prep

Action Principale : hypergroup

Code de préparation

Script en attente de validation
Copié !
1import pandas as pd
2import swat
3 
4s = swat.CAS('localhost', 5570) # Connexion à votre serveur CAS
5 
6DATA = {
7 'source': ['A', 'A', 'B', 'C', 'C', 'D'],
8 'target': ['B', 'C', 'C', 'D', 'E', 'E']
9}
10df = pd.DataFrame(DATA)
11 
12s.upload_dataframe(df, casout={'name': 'my_edges', 'replace': True})
13PRINT(s.fetch('my_edges'))
Actions utilisant ce script
  • hypergroup hypergroup En cours
  • Aucune autre action n'utilise ce script exact.