You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -753,7 +799,7 @@ To select from a DataFrame or Series the nth item, use the nth method:
753
799
754
800
g.nth(-1)
755
801
756
-
If you want to select the nth not-null method, use the dropna kwarg. For a DataFrame this should be either 'any' or 'all' just like you would pass to dropna, for a Series this just needs to be truthy.
802
+
If you want to select the nth not-null method, use the dropna kwarg. For a DataFrame this should be either 'any' or 'all' just like you would pass to dropna, for a Series this just needs to be truthy.
757
803
758
804
.. ipython:: python
759
805
@@ -808,7 +854,7 @@ column index name will be used as the name of the inserted column:
808
854
'b': [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1],
809
855
'c': [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0],
810
856
'd': [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1],
811
-
})
857
+
})
812
858
813
859
defcompute_metrics(x):
814
860
result = {'b_sum': x['b'].sum(), 'c_mean': x['c'].mean()}
0 commit comments