Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
¿Hay alguna forma de ejecutar scripts de Python para automatizar el paso de consulta de aplicación? Al igual que el tipo cambiado, reemplace el valor. Gracias.
Hola, @ndn_nualkeaw
A continuación se muestra un ejemplo sencillo de cómo reemplazar valores en una columna mediante un script de Python:
# Replace values in a column using Python
import pandas as pd
# Input DataFrame
df = pd.DataFrame({
'Column1': ['A', 'B', 'C', 'D', 'E']
})
# Replace values in Column1
df['Column1'] = df['Column1'].replace({'A': 'X', 'B': 'Y'})
# Return the transformed DataFrame
df
Saludos
hackcrr
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.