TypeError: argument of type 'azureml.dataprep.rslex.StreamInfo' is not iterable
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- azure, python, spark
- Ambito
- data, machine-learning
Direzione di ricerca
Inizia eseguendo la riproduzione fornita di NycTlcYellow con azureml-opendatasets==1.55.0, quindi ispeziona azureml/opendatasets/dataaccess/_blob_accessor.py, in particolare get_spark_dataframe e _get_relative_path. Traccia il motivo per cui target_paths contiene uno StreamInfo e confronta i percorsi pandas e Spark; il lavoro è completato quando to_spark_dataframe termina senza il TypeError segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi, I encountered below error, I have azureml-opendatasets==1.55.0
Calling to_spark_dataframe()
Traceback (most recent call last):
File "/mnt/c/users/cruiseli/OneDrive - Microsoft/Desktop/workspace/SynapseML-Utils/test_aml.py", line 30, in
nyc_tlc_df2 = nyc_tlc.to_spark_dataframe()
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/accessories/_loggerfactory.py", line 139, in wrapper
return func(*args, **kwargs)
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/accessories/open_dataset_base.py", line 164, in to_spark_dataframe
return self._to_spark_dataframe()
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/accessories/open_dataset_base.py", line 305, in _to_spark_dataframe
return self._blob_accessor.get_spark_dataframe(
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/dataaccess/_blob_accessor.py", line 303, in get_spark_dataframe
paths = [wasab_format % (self._blob_container_name, self._blob_account_name,
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/dataaccess/_blob_accessor.py", line 304, in
self._get_relative_path(path)) for path in target_paths]
File "/home/cruise/mambaforge/lib/python3.10/site-packages/azureml/opendatasets/dataaccess/_blob_accessor.py", line 470, in _get_relative_path
if "blob.core.windows.net" in url:
TypeError: argument of type 'azureml.dataprep.rslex.StreamInfo' is not iterable
Code to reproduce:
import azureml.core
from azureml.core import Datastore, Dataset
from azureml.core.workspace import Workspace
from azureml.core.experiment import Experiment
from azureml.core.authentication import InteractiveLoginAuthentication
import logging
import pandas as pd
import time
import sys
print("Testing opendatasets -- start")
from azureml.opendatasets import NycTlcYellow
from datetime import datetime
from dateutil import parser
end_date = parser.parse('2018-05-30')
start_date = parser.parse('2018-05-28')
nyc_tlc = NycTlcYellow(start_date=start_date, end_date=end_date)
print("Calling to_pandas_dataframe()")
ts = time.time()
nyc_tlc_df = nyc_tlc.to_pandas_dataframe()
te = time.time()
print("Time taken to perform to_pandas_dataframe():" + str(te-ts))
print("Calling to_spark_dataframe()")
ts2 = time.time()
nyc_tlc_df2 = nyc_tlc.to_spark_dataframe()
te2 = time.time()
nyc_tlc_df2.show(2, truncate = False)
print("Time taken to perform to_spark_dataframe():" + str(te2-ts2))
print("Testing opendatasets -- end")
- Lingua principale
- Jupyter Notebook
- Stelle
- 4.4k
- Fork
- 2.6k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/MachineLearningNotebooks
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Azure/MachineLearningNotebooks#1975 · 1 commento ·
-
duplicates Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
Azure/MachineLearningNotebooks#1960 ·
-
machine Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 10/100
Azure/MachineLearningNotebooks#1987 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure/MachineLearningNotebooks#1985 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Azure/MachineLearningNotebooks#1981 · 1 reazione ·
Tutte le issue di Azure/MachineLearningNotebooks
Issue simili
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fivetran/great_expectations#12253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
correction metadata
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
acl-org/acl-anthology#10071 · 1 commento ·
-
data:css needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mdn/browser-compat-data#30618 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
basedosdados/pipelines#2095 ·