FieldMetaType error in Swarming

Any ideas about where this error is coming from? I’ve tried a few things but can’t seem to solve it.

Exception: Invalid file format for "/home/myswarm/data/Alpha_interictal.csv" - field type "" not a valid FieldMetaType

my data
image

my search def json file

{
  "includedFields": [
    {
      "fieldName": "timestamp", 
      "fieldType": "float"
    }, 
    {
      "fieldName": "value", 
      "fieldType": "float"
    }
  ], 
  "streamDef": {
    "info": "test", 
    "version": 1, 
    "streams": [
      {
        "info": "Alpha_interictal.csv", 
        "source": "file://myswarm/data/Alpha_interictal.csv", 
        "columns": [
          "*"
        ], 
        "last_record": 100
      }
    ], 
    "aggregation": {
      "hours": 1, 
      "microseconds": 0, 
      "seconds": 0, 
      "fields": [
        [
          "value", 
          "sum"
        ], 

        [
          "dttm", 
          "first"
        ]
      ], 
      "weeks": 0, 
      "months": 0, 
      "minutes": 0, 
      "days": 0, 
      "milliseconds": 0, 
      "years": 0
    }
  }, 
  "inferenceType": "TemporalAnomaly", 
  "inferenceArgs": {
    "predictionSteps": [
      1
    ], 
    "predictedField": "value"
  }, 
  "iterationCount": -1, 
  "swarmSize": "medium"
}
1 Like

I’d try changing those second lines from <type ‘float’> to just: float

Yeah, I’ve tried this, no luck

You have an empty field (the first column). Give it a name and a type (like count and int) even if you’re not processing it.

Slightly delayed repose, but thanks rhyolight, I found you can add this when saving a CSV to remove the index when saving

df.to_csv(path, index=False)