我认为这可能是我特定的扑克问题,我不确定,我很乐意得到帮助!
我尝试按照以下顺序在我的For kfp = 0 To UBound(FillPages)
' Get the page and table information.
Set sh = Sheets(FillPages(kfp))
TableName = "Table_" & Replace(sh.Name, " ", "_")
Set tbl = sh.ListObjects(TableName)
'clear out any old data in the table
ClearTable sh.Name, TableName
' Loop through headers on table on the sheet
For kth = 1 To tbl.HeaderRowRange.Count
HeaderNameT = tbl.HeaderRowRange(kth)
' Does the template have a match in the map
Set rng = Range("Table_Map[Template]").Find(HeaderNameT, LookIn:=xlValues, lookat:=xlWhole)
' If a match is found
If Not rng Is Nothing Then
HeaderNameD = rng.Offset(0, -1)
' copy the column from data to template
Range("Table_Data[" & HeaderNameD & "]").Copy Range(TableName & "[" & HeaderNameT & "]")
End If
Next kth
Next kfp
'Filter tables and Delete
Dim i As Long
'Filter, delete, count: Out of Stock sheet
With Worksheets("Out of Stock").ListObjects("Table_Out_of_Stock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("Roster").Index, Criteria1:="<>4"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("RP Type").Index, Criteria1:="=NoRoster"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("SOH").Index, Criteria1:="<>0"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
' Count Instances and add to cells: Out of Stock sheet
Dim InstVal As Integer
InstVal = Worksheets("Out of Stock").ListObjects("Table_Out_of_Stock").ListRows.Count
Worksheets("Out of Stock").Range("O14") = InstVal
With Worksheets("Out of Stock").ListObjects("Table_Out_of_Stock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("SOH").Index, Criteria1:="<>0"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
'Filter, delete, count: Overstock
With Worksheets("Overstock").ListObjects("Table_Overstock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("Ranging").Index, Criteria1:="<>4"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
' Count Instances and add to cells: Out of Stock sheet
InstVal = Worksheets("Overstock").ListObjects("Table_Overstock").ListRows.Count
Worksheets("Overstock").Range("P14") = InstVal
'Filter, delete, count: Outdated Stock Counts
With Worksheets("Outdated Stock Counts").ListObjects("Table_Outdated_Stock_Counts")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("Ranging").Index, Criteria1:="<>4"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("SOH").Index, Criteria1:="=0"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
' Count Instances and add to cells: Outdated Stock Counts
InstVal = Worksheets("Outdated Stock Counts").ListObjects("Table_Outdated Stock Counts").ListRows.Count
Worksheets("Outdated Stock Counts").Range("N14") = InstVal
'Filter, delete, count: Dormant Stock
With Worksheets("Dormant Stock").ListObjects("Table_Dormant_Stock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("Ranging").Index, Criteria1:="<>4"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("SOH").Index, Criteria1:="<=0"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
' Count Instances and add to cells: Dormant Stock
InstVal = Worksheets("Dormant Stock").ListObjects("Table_Dormant_Stock").ListRows.Count
Worksheets("Dormant Stock").Range("L14") = InstVal
'Filter, delete, count: Negative Stock
With Worksheets("Negative Stock").ListObjects("Table_Negative_Stock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("Ranging").Index, Criteria1:="<>4"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
' Count Instances and add to cells: Negative Stock
InstVal = Worksheets("Negative Stock").ListObjects("Table_Negative_Stock").ListRows.Count
Worksheets("Negative Stock").Range("M14") = InstVal
With Worksheets("Negative Stock").ListObjects("Table_Negative_Stock")
.Range.AutoFilter
.Range.AutoFilter Field:=.ListColumns("SOH").Index, Criteria1:=">=0"
.Range.Offset(1).EntireRow.Delete
.Range.AutoFilter
End With
'Error Handling section.
ErrorHandler:
Select Case Err.Number
'Common error #1: file path or workbook name is wrong.
Case 1004
Application.ScreenUpdating = True
MsgBox "The workbook could not be found in the path" & vbCrLf & MyPath & "."
Exit Sub
'General case: turn screenupdating back on, and exit.
Case Else
Application.ScreenUpdating = True
Exit Sub
End Select
End Sub
上运行一个简单的firebase_auth: ^0.5.5
:dependencies:
但是我在调试控制台中得到了这个字符串:
dependencies:
flutter:
sdk: flutter
firebase_auth: ^0.5.5
现在,每次尝试运行flutter包时都会出现此错误[login_register_3] flutter packages get
fatal: bad config line 1 in file .git/config
Updating flutter tool...
Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Failed to send crash report. Server responded with HTTP status code 400
Unhandled exception:
NoSuchMethodError: The getter 'environment' was called on null.
Receiver: null
Tried calling: environment
#0 Object.noSuchMethod (dart:core-patch/dart:core/object_patch.dart:46)
#1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:79)
<asynchronous suspension>
#2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:71)
#3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:128)
<asynchronous suspension>
#4 _doctorText.<anonymous closure> (package:flutter_tools/runner.dart:237)
#5 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#6 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#7 _rootRun (dart:async/zone.dart:1126)
#8 _CustomZone.run (dart:async/zone.dart:1023)
#9 runZoned (dart:async/zone.dart:1501)
#10 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#11 _doctorText (package:flutter_tools/runner.dart:237)
<asynchronous suspension>
#12 _createLocalCrashReport (package:flutter_tools/runner.dart:212)
<asynchronous suspension>
#13 _handleToolError (package:flutter_tools/runner.dart:167)
<asynchronous suspension>
#14 run.<anonymous closure> (package:flutter_tools/runner.dart:94)
<asynchronous suspension>
#15 AppContext._run (package:flutter_tools/src/base/context.dart:76)
<asynchronous suspension>
#16 AppContext.runInZone.<anonymous closure> (package:flutter_tools/src/base/context.dart:66)
#17 _rootRun (dart:async/zone.dart:1126)
#18 _CustomZone.run (dart:async/zone.dart:1023)
#19 runZoned (dart:async/zone.dart:1501)
#20 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65)
#21 run (package:flutter_tools/runner.dart:61)
<asynchronous suspension>
#22 main (package:flutter_tools/executable.dart:48)
<asynchronous suspension>
#23 main (file:///c:/flutter/packages/flutter_tools/bin/flutter_tools.dart:16)
#24 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#25 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
exit code 255
,所以我不知道在哪里解决问题!先进的很多幻影
答案 0 :(得分:0)
我认为你的项目有问题或者是git配置。您可以查看此电台的回复。
对于那些遇到这个问题的人(我相信它是由于崩溃了 如果您有最近的配置备份,请在Windows中使用git mid init?) 来自你的git repo的.git /文件夹中的文件你可以通过替换它来修复它 与它同时存在(任何参考文献都会添加,因为副本显然需要 重新添加) - 完全没有理想但比丢失所有提交更好。
答案 1 :(得分:0)
将包装与其他包装对齐,并使用此代码获取包装。
mux = pd.MultiIndex.from_product([df['ID'].unique(),
np.arange(df['Year'].min(), df['Year'].max() + 1)],
names=['ID','Year'])
df = df.set_index(['ID','Year']).reindex(mux).reset_index()
print (df)
ID Year Data1 Data2
0 345 2010 3.0 2.0
1 345 2011 1.0 4.0
2 345 2012 5.0 2.0
3 345 2013 3.0 1.0
4 345 2014 3.0 1.0
5 345 2015 3.0 1.0
6 345 2016 3.0 1.0
7 123 2010 1.0 1.0
8 123 2011 NaN NaN
9 123 2012 0.0 2.0
10 123 2013 NaN NaN
11 123 2014 NaN NaN
12 123 2015 NaN NaN
13 123 2016 0.0 2.0
答案 2 :(得分:0)
从flutter终端运行 flutter程序包