JetBrains-Research / pubtrends

Scientific literature explorer. Runs a Pubmed or Semantic Scholar search and allows user to explore high-level structure of result papers
Apache License 2.0
36 stars 2 forks source link

Error: cannot convert NaN to Float #145

Closed olegs closed 5 years ago

olegs commented 5 years ago

Happened on request neurogenesis bdnf axon pathfinding applied to pubmed.

worker_1  | [2019-08-26 16:23:48,557: ERROR/ForkPoolWorker-1] Task analyze_async[9758aaa1-8b8c-48ef-b426-68e8c96411c1] raised unexpected: ValueError('cannot convert float NaN to integer')
worker_1  | Traceback (most recent call last):
worker_1  |   File "/home/user/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 385, in trace_task
worker_1  |     R = retval = fun(*args, **kwargs)
worker_1  |   File "/home/user/miniconda3/envs/pubtrends/lib/python3.7/site-packages/celery/app/trace.py", line 648, in __protected_call__
worker_1  |     return self.run(*args, **kwargs)
worker_1  |   File "/home/user/models/celery/tasks.py", line 38, in analyze_async
worker_1  |     sort=SORT_METHODS[sort], task=current_task)
worker_1  |   File "/home/user/models/keypaper/analysis.py", line 98, in launch
worker_1  |     task=task)
worker_1  |   File "/home/user/models/keypaper/analysis.py", line 304, in subtopic_evolution_analysis
worker_1  |     min_year = int(cocit_df['year'].min())
worker_1  | ValueError: cannot convert float NaN to integer
olegs commented 5 years ago

Cannot reproduce as of 4e5e38c