Skip to content

Commit 451bc26

Browse files
committed
PR review comments
1 parent 187c71a commit 451bc26

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/csharp/Microsoft.Spark/Sql/DataFrame.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ public void PrintSchema() =>
7474
/// Prints the schema up to the given level to the console in a nice tree format.
7575
/// </summary>
7676
[Since(Versions.V3_0_0)]
77-
public void PrintSchema(int level) =>
78-
Console.WriteLine(
79-
(string)((JvmObjectReference)_jvmObject.Invoke("schema"))
80-
.Invoke("treeString", level));
77+
public void PrintSchema(int level) => Console.WriteLine(
78+
(string)((JvmObjectReference)_jvmObject.Invoke("schema"))
79+
.Invoke("treeString", level));
8180

8281
/// <summary>
8382
/// Prints the plans (logical and physical) to the console for debugging purposes.

src/csharp/Microsoft.Spark/Sql/DataFrameStatFunctions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,7 @@ public DataFrame SampleBy<T>(
134134
/// <param name="seed">Random seed</param>
135135
/// <returns>DataFrame object</returns>
136136
[Since(Versions.V3_0_0)]
137-
public DataFrame SampleBy<T>(
138-
Column column,
139-
IDictionary<T, double> fractions,
140-
long seed) =>
137+
public DataFrame SampleBy<T>(Column column, IDictionary<T, double> fractions, long seed) =>
141138
WrapAsDataFrame(_jvmObject.Invoke("sampleBy", column, fractions, seed));
142139

143140
private DataFrame WrapAsDataFrame(object obj) => new DataFrame((JvmObjectReference)obj);

0 commit comments

Comments
 (0)