This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pyspark.sql.functions import pandas_udf | |
| #... | |
| # Use pandas_udf to define a Pandas UDF | |
| @pandas_udf('string') | |
| # Input/output are both a pandas.Series of string | |
| def pandas_not_null(s): | |
| return s.fillna("_NO_₦Ӑ_").replace('', '_NO_ӖӍΡṬΫ_') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pyspark.ml.feature import StringIndexer | |
| from pyspark.ml.feature import OneHotEncoder | |
| # ... | |
| def one_hot_encode(_df, input_column, output_column): | |
| indexer = StringIndexer(inputCol=input_column, outputCol=input_column+"_indexed", handleInvalid='skip') | |
| _model = indexer.fit(_df) | |
| _td = _model.transform(_df) | |
| encoder = OneHotEncoder(inputCol=input_column+"_indexed", outputCol=output_column, dropLast=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| Para obter mais informações sobre como configurar o aplicativo ASP.NET, visite | |
| http://go.microsoft.com/fwlink/?LinkId=169433 | |
| --> | |
| <configuration> | |
| <configSections> | |
| <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | |
| <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> | |
| <sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Microsoft.Web.WebPages.OAuth; | |
| using WebMatrix.WebData; | |
| namespace TesteSimpleMembershipEmpty | |
| { | |
| public static class AuthConfig |
NewerOlder